From dc6c85975b7b25179920b0257eb751a6c8a1a637 Mon Sep 17 00:00:00 2001 From: Shish Date: Fri, 9 Mar 2012 15:55:17 +0000 Subject: [PATCH] working navigation for tag history --- contrib/tag_history/main.php | 2 +- contrib/tag_history/theme.php | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/contrib/tag_history/main.php b/contrib/tag_history/main.php index a0f29081..1be0546c 100644 --- a/contrib/tag_history/main.php +++ b/contrib/tag_history/main.php @@ -67,7 +67,7 @@ class Tag_History extends Extension { } } else if($event->page_matches("tag_history/all")) { - $page_id = int_escape($event->get_arg(1)); + $page_id = int_escape($event->get_arg(0)); $this->theme->display_global_page($page, $this->get_global_tag_history($page_id), $page_id); } else if($event->page_matches("tag_history") && $event->count_args() == 1) { diff --git a/contrib/tag_history/theme.php b/contrib/tag_history/theme.php index de8ed164..7387d6d9 100644 --- a/contrib/tag_history/theme.php +++ b/contrib/tag_history/theme.php @@ -86,15 +86,13 @@ class Tag_HistoryTheme extends Themelet { $history_html = $start_string . $history_list . $end_string; $page->set_title("Global Tag History"); $page->set_heading("Global Tag History"); - $page->add_block(new NavBlock()); $page->add_block(new Block("Tag History", $history_html, "main", 10)); $h_prev = ($page_number <= 1) ? "Prev" : - 'Prev'; + 'Prev'; $h_index = "Index"; - $h_next = ($page_number >= $total_pages) ? "Next" : - 'Next'; + $h_next = 'Next'; $nav = $h_prev.' | '.$h_index.' | '.$h_next; $page->add_block(new Block("Navigation", $nav, "left"));