make things work

This commit is contained in:
Shish 2009-01-22 02:14:16 -08:00
parent b336b5296f
commit 3af5caf523
3 changed files with 6 additions and 3 deletions

View file

@ -83,9 +83,9 @@ class Index implements Extension {
$count = $config->get_int('index_width') * $config->get_int('index_height');
$images = Image::find_images($config, $database, ($page_number-1)*$count, $count, $search_terms);
if(!(count($search_terms) == 0 && count($images) == 0)) {
send_event(new PostListBuildingEvent($event->page, $search_terms));
send_event(new PostListBuildingEvent($event->page, $search_terms));
if(!(count($search_terms) == 0 && count($images) == 0)) {
$this->theme->set_page($page_number, $total_pages, $search_terms);
$this->theme->display_page($event->page, $images);
}

View file

@ -16,6 +16,8 @@ administrator, and any further accounts will be regular users.
<p>Once logged in you can play with the settings, install extra features,
and of course start organising your images :-)
<p>This message will go away once your first image is uploaded~
</div>
EOD;
$page->set_title("Welcome to Shimmie ".VERSION);

View file

@ -161,7 +161,8 @@ class UserPage implements Extension {
}
if($event instanceof UserCreationEvent) {
if($this->check_user_creation($event)) $this->create_user($event);
$this->check_user_creation($event);
$this->create_user($event);
}
if($event instanceof SearchTermParseEvent) {