From 8837e50a8eccbf7dc3031aee258e6e3cc44c7315 Mon Sep 17 00:00:00 2001 From: shish Date: Thu, 12 Jul 2007 07:00:14 +0000 Subject: [PATCH] fix subheadings git-svn-id: file:///home/shish/svn/shimmie2/trunk@259 7f39781d-f577-437e-ae19-be835c7a54ca --- ext/index/theme.php | 2 +- themes/default/layout.class.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ext/index/theme.php b/ext/index/theme.php index ebec6914..efc451f5 100644 --- a/ext/index/theme.php +++ b/ext/index/theme.php @@ -19,7 +19,7 @@ class IndexTheme extends Themelet { $query = "search=".url_escape($search_string); $page_title = html_escape($search_string); if(count($images) > 0) { - $page->set_subheading("Page $page_number / $total_pages"); + $page->set_subheading("Page {$this->page_number} / {$this->total_pages}"); } } if($this->page_number > 1 || count($this->search_terms) > 0) { diff --git a/themes/default/layout.class.php b/themes/default/layout.class.php index 9eb8c2f0..37294081 100644 --- a/themes/default/layout.class.php +++ b/themes/default/layout.class.php @@ -35,11 +35,11 @@ class Layout { $contact = empty($contact_link) ? "" : "
Contact"; - if(empty($this->subheading)) { + if(empty($page->subheading)) { $subheading = ""; } else { - $subheading = "
{$this->subheading}
"; + $subheading = "
{$page->subheading}
"; } print <<