forked from Cavemanon/cavepaintings
named placeholder for rating search
This commit is contained in:
@ -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)));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user