how did I not notice these errors? <_<
git-svn-id: file:///home/shish/svn/shimmie2/trunk@258 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
parent
4bc53455ed
commit
5873029fed
2 changed files with 5 additions and 3 deletions
|
@ -27,7 +27,7 @@ class Index extends Extension {
|
|||
$images = $database->get_images(($page_number-1)*$count, $count, $search_terms);
|
||||
|
||||
$this->theme->set_page($page_number, $total_pages, $search_terms);
|
||||
$this->theme->display_page($event->page, $page_title, $images);
|
||||
$this->theme->display_page($event->page_object, $images);
|
||||
}
|
||||
|
||||
if(is_a($event, 'SetupBuildingEvent')) {
|
||||
|
|
|
@ -7,7 +7,9 @@ class IndexTheme extends Themelet {
|
|||
$this->search_terms = $search_terms;
|
||||
}
|
||||
|
||||
public function display_page($page, $page_title, $images) {
|
||||
public function display_page($page, $images) {
|
||||
global $config;
|
||||
|
||||
if(count($this->search_terms) == 0) {
|
||||
$query = null;
|
||||
$page_title = $config->get_string('title');
|
||||
|
@ -20,7 +22,7 @@ class IndexTheme extends Themelet {
|
|||
$page->set_subheading("Page $page_number / $total_pages");
|
||||
}
|
||||
}
|
||||
if($page_number > 1 || count($this->search_terms) > 0) {
|
||||
if($this->page_number > 1 || count($this->search_terms) > 0) {
|
||||
// $page_title .= " / $page_number";
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue