diff --git a/ext/index/main.php b/ext/index/main.php index 55b81e79..c712708d 100644 --- a/ext/index/main.php +++ b/ext/index/main.php @@ -334,6 +334,10 @@ class Index extends Extension { $hash = strtolower($matches[2]); $event->add_querylet(new Querylet('images.hash = :hash', array("hash" => $hash))); } + else if(preg_match("/^(phash)[=|:]([0-9a-fA-F]*)$/i", $event->term, $matches)) { + $phash = strtolower($matches[2]); + $event->add_querylet(new Querylet('images.phash = :phash', array("phash" => $phash))); + } else if(preg_match("/^(filetype|ext)[=|:]([a-zA-Z0-9]*)$/i", $event->term, $matches)) { $ext = strtolower($matches[2]); $event->add_querylet(new Querylet('images.ext = :ext', array("ext" => $ext))); diff --git a/ext/index/theme.php b/ext/index/theme.php index 6bc915cb..83f78969 100644 --- a/ext/index/theme.php +++ b/ext/index/theme.php @@ -137,7 +137,7 @@ and of course start organising your images :-) if (count($this->search_terms) > 0) { if($this->page_number > 3) { // only index the first pages of each term - $page->add_html_header(''); + $page->add_html_header(''); } $query = url_escape(implode(' ', $this->search_terms)); $page->add_block(new Block("Images", $this->build_table($images, "#search=$query"), "main", 10, "image-list"));