search for ratings with full words
This commit is contained in:
parent
6f67a134ff
commit
556d3b50ec
@ -125,6 +125,11 @@ class Ratings implements Extension {
|
|||||||
$set = join(', ', $arr);
|
$set = join(', ', $arr);
|
||||||
$event->add_querylet(new Querylet("rating IN ($set)"));
|
$event->add_querylet(new Querylet("rating IN ($set)"));
|
||||||
}
|
}
|
||||||
|
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)));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user