make things work
This commit is contained in:
parent
b336b5296f
commit
3af5caf523
@ -83,9 +83,9 @@ class Index implements Extension {
|
|||||||
$count = $config->get_int('index_width') * $config->get_int('index_height');
|
$count = $config->get_int('index_width') * $config->get_int('index_height');
|
||||||
$images = Image::find_images($config, $database, ($page_number-1)*$count, $count, $search_terms);
|
$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->set_page($page_number, $total_pages, $search_terms);
|
||||||
$this->theme->display_page($event->page, $images);
|
$this->theme->display_page($event->page, $images);
|
||||||
}
|
}
|
||||||
|
@ -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,
|
<p>Once logged in you can play with the settings, install extra features,
|
||||||
and of course start organising your images :-)
|
and of course start organising your images :-)
|
||||||
|
|
||||||
|
<p>This message will go away once your first image is uploaded~
|
||||||
</div>
|
</div>
|
||||||
EOD;
|
EOD;
|
||||||
$page->set_title("Welcome to Shimmie ".VERSION);
|
$page->set_title("Welcome to Shimmie ".VERSION);
|
||||||
|
@ -161,7 +161,8 @@ class UserPage implements Extension {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if($event instanceof UserCreationEvent) {
|
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) {
|
if($event instanceof SearchTermParseEvent) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user