From 2225fb4809a11c716579bc62d9113674d73c9c3d Mon Sep 17 00:00:00 2001 From: Petr Skoda Date: Sat, 4 Sep 2010 14:43:11 +0000 Subject: [PATCH] MDL-24080 fixed debug warning and converted NOT LIKE --- admin/report/customlang/locallib.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/admin/report/customlang/locallib.php b/admin/report/customlang/locallib.php index 42baf2066f3..91d09b72e85 100644 --- a/admin/report/customlang/locallib.php +++ b/admin/report/customlang/locallib.php @@ -502,9 +502,11 @@ class report_customlang_translator implements renderable { } if (!empty($filter->helps)) { - $sql .= " AND ".$DB->sql_like('s.stringid', '%\\\\_help', false); + $sql .= " AND ".$DB->sql_like('s.stringid', ':help', false); //ILIKE + $params['help'] = '%\\\\_help'; } else { - $sql .= " AND s.stringid NOT LIKE '%\\\\_link'"; //TODO: MDL-24080 + $sql .= " AND ".$DB->sql_like('s.stringid', ':link', false, true, true); //NOT ILIKE + $params['link'] = '%\\\\_link'; } $osql = " ORDER BY c.name, s.stringid"; -- 2.39.2