Slightly major rework of the search code internals, makes things more sane and fixes a couple of bugs

git-svn-id: file:///home/shish/svn/shimmie2/trunk@867 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
shish
2008-05-19 15:59:58 +00:00
parent 2c1c605f12
commit a658019697
6 changed files with 75 additions and 27 deletions

View File

@ -55,7 +55,7 @@ class DanbooruApi extends Extension
if(preg_match("/md5:([0-9a-fA-F]*)/i", $event->term, $matches))
{
$hash = strtolower($matches[1]);
$event->set_querylet(new Querylet("AND (images.hash = '$hash')"));
$event->set_querylet(new Querylet("images.hash = '$hash'"));
}
}
}