From ac1196dee18ede0ff767d52227a72e85e00d312e Mon Sep 17 00:00:00 2001 From: Matthew Barbour Date: Wed, 26 Jun 2019 22:45:19 -0500 Subject: [PATCH] Added lower to tag_categories search --- ext/tag_categories/main.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ext/tag_categories/main.php b/ext/tag_categories/main.php index b51d0708..682455af 100644 --- a/ext/tag_categories/main.php +++ b/ext/tag_categories/main.php @@ -75,14 +75,14 @@ class TagCategories extends Extension $types = $database->get_col('SELECT category FROM image_tag_categories'); if (in_array($type, $types)) { $event->add_querylet( - new Querylet("EXISTS ( + new Querylet($database->scoreql_to_sql("EXISTS ( SELECT 1 FROM image_tags it LEFT JOIN tags t ON it.tag_id = t.id WHERE images.id = it.image_id GROUP BY image_id - HAVING SUM(CASE WHEN t.tag LIKE '$type:%' THEN 1 ELSE 0 END) $cmp $count - )") + HAVING SUM(CASE WHEN SCORE_STRNORM(t.tag) LIKE SCORE_STRNORM('$type:%') THEN 1 ELSE 0 END) $cmp $count + )")) ); } }