changed this too

git-svn-id: file:///home/shish/svn/shimmie2/trunk@1059 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
shish 2008-10-09 03:23:12 +00:00
parent 072b22ee8f
commit 2e48f233b5

View file

@ -7,7 +7,7 @@ class ViewImageTheme extends Themelet {
public function display_page($page, $image, $editor_parts) { public function display_page($page, $image, $editor_parts) {
$page->set_title("Image {$image->id}: ".html_escape($image->get_tag_list())); $page->set_title("Image {$image->id}: ".html_escape($image->get_tag_list()));
$page->set_heading(html_escape($image->get_tag_list())); $page->set_heading(html_escape($image->get_tag_list()));
$page->add_block(new Block("Navigation", $this->build_navigation($image->id), "left", 0)); $page->add_block(new Block("Navigation", $this->build_navigation($image), "left", 0));
$page->add_block(new Block(null, $this->build_info($image, $editor_parts), "main", 10)); $page->add_block(new Block(null, $this->build_info($image, $editor_parts), "main", 10));
$page->add_block(new Block(null, $this->build_pin($image), "main", 11)); $page->add_block(new Block(null, $this->build_pin($image), "main", 11));
} }
@ -48,8 +48,8 @@ class ViewImageTheme extends Themelet {
return $this->pin; return $this->pin;
} }
protected function build_navigation($image_id) { protected function build_navigation($image) {
$h_pin = $this->build_pin($image_id); $h_pin = $this->build_pin($image);
$h_search = " $h_search = "
<p><form action='".make_link()."' method='GET'> <p><form action='".make_link()."' method='GET'>
<input id='search_input' name='search' type='text' <input id='search_input' name='search' type='text'