mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
NOMDL report_cutomlang: fixed ILIKE SQL escaping after recent improvements of sql_like()
This commit is contained in:
parent
0f07802493
commit
60dfef5b82
@ -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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user