this isn't slow any more

This commit is contained in:
Shish 2009-09-19 23:07:39 +01:00
parent 281c34d64e
commit 3a9b82ab1e

View file

@ -22,13 +22,7 @@ class ViewImageTheme extends Themelet {
}
var $pin = null;
protected function build_pin(Image $image) {
if(!is_null($this->pin)) {
return $this->pin;
}
global $database;
if(isset($_GET['search'])) {
@ -44,8 +38,7 @@ class ViewImageTheme extends Themelet {
$h_index = "<a href='".make_link()."'>Index</a>";
$h_next = "<a href='".make_link("post/next/{$image->id}", $query)."'>Next</a>";
$this->pin = "$h_prev | $h_index | $h_next";
return $this->pin;
return "$h_prev | $h_index | $h_next";
}
protected function build_navigation(Image $image) {