named placeholder for rating search

This commit is contained in:
Shish 2012-01-16 22:53:14 +00:00
parent 17b5268452
commit c3aa7f14dd

View file

@ -116,7 +116,7 @@ class Ratings implements Extension {
if(preg_match("/^rating=(safe|questionable|explicit|unknown)$/", strtolower($event->term), $matches)) {
$text = $matches[1];
$char = $text[0];
$event->add_querylet(new Querylet("rating = ?", array($char)));
$event->add_querylet(new Querylet("rating = :img_rating", array("img_rating"=>$char)));
}
}