From 613be4124032d8ea57c35c9fe39be0729f31bd6b Mon Sep 17 00:00:00 2001 From: Shish Date: Sun, 2 Aug 2009 08:33:20 +0100 Subject: [PATCH 1/2] this needs autoblanking too --- ext/view/theme.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ext/view/theme.php b/ext/view/theme.php index fc8a719f..b700c747 100644 --- a/ext/view/theme.php +++ b/ext/view/theme.php @@ -48,9 +48,13 @@ class ViewImageTheme extends Themelet { protected function build_navigation(Image $image) { $h_pin = $this->build_pin($image); $h_search = " +

- +
"; From 98fa32478688743ec4ec98f40cd01ddb343c143c Mon Sep 17 00:00:00 2001 From: Shish Date: Sun, 2 Aug 2009 08:43:00 +0100 Subject: [PATCH 2/2] search for ratings with full words --- contrib/rating/main.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/contrib/rating/main.php b/contrib/rating/main.php index cdab8b4c..a729cfe9 100644 --- a/contrib/rating/main.php +++ b/contrib/rating/main.php @@ -125,6 +125,11 @@ class Ratings implements Extension { $set = join(', ', $arr); $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))); + } } }