Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
16114b9
)
MDL-24080 fixed debug warning and converted NOT LIKE
author
Petr Skoda
<skodak@moodle.org>
Sat, 4 Sep 2010 14:43:11 +0000
(14:43 +0000)
committer
Petr Skoda
<skodak@moodle.org>
Sat, 4 Sep 2010 14:43:11 +0000
(14:43 +0000)
admin/report/customlang/locallib.php
patch
|
blob
|
blame
|
history
diff --git
a/admin/report/customlang/locallib.php
b/admin/report/customlang/locallib.php
index
42baf20
..
91d09b7
100644
(file)
--- 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";