no pages for one image

This commit is contained in:
Shish 2012-03-09 22:49:26 +00:00
parent a7a50cb78f
commit 91a97f2b00
2 changed files with 2 additions and 2 deletions

View File

@ -73,7 +73,7 @@ class Tag_History extends Extension {
else if($event->page_matches("tag_history") && $event->count_args() == 1) { else if($event->page_matches("tag_history") && $event->count_args() == 1) {
// must be an attempt to view a tag history // must be an attempt to view a tag history
$image_id = int_escape($event->get_arg(0)); $image_id = int_escape($event->get_arg(0));
$this->theme->display_history_page($page, $image_id, $this->get_tag_history_from_id($image_id, $page_id)); $this->theme->display_history_page($page, $image_id, $this->get_tag_history_from_id($image_id));
} }
} }

View File

@ -98,7 +98,7 @@ class Tag_HistoryTheme extends Themelet {
} }
public function display_history_link(Page $page, /*int*/ $image_id) { public function display_history_link(Page $page, /*int*/ $image_id) {
$link = '<a href="'.make_link("tag_history/$image_id/1").'">Tag History</a>'; $link = '<a href="'.make_link("tag_history/$image_id").'">Tag History</a>';
$page->add_block(new Block(null, $link, "main", 5)); $page->add_block(new Block(null, $link, "main", 5));
} }