NOMDL report_cutomlang: fixed ILIKE SQL escaping after recent improvements of sql_like()

This commit is contained in:
David Mudrak 2010-09-16 09:03:54 +00:00
parent 0f07802493
commit 60dfef5b82

View File

@ -503,10 +503,10 @@ class report_customlang_translator implements renderable {
if (!empty($filter->helps)) {
$sql .= " AND ".$DB->sql_like('s.stringid', ':help', false); //ILIKE
$params['help'] = '%\\\\_help';
$params['help'] = '%\_help';
} else {
$sql .= " AND ".$DB->sql_like('s.stringid', ':link', false, true, true); //NOT ILIKE
$params['link'] = '%\\\\_link';
$params['link'] = '%\_link';
}
$osql = " ORDER BY c.name, s.stringid";