Skip to content

Commit

Permalink
MDL-24079 sql_ilike is deprecated, I still do not understand why do w…
Browse files Browse the repository at this point in the history
…e have to drag this old code along
  • Loading branch information
skodak committed Sep 4, 2010
1 parent e15b9cb commit 086339d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/wiki/db/migration/wiki/ewikimoodlelib.php
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ function ewiki_database_moodle($action, &$args, $sw1, $sw2) {
$sql= "SELECT pagename AS id, version, flags" .
(EWIKI_DBQUERY_BUFFER && ($field!="pagename") ? ", $field" : "") .
" FROM {".EWIKI_DB_TABLE_NAME."}".
" WHERE $field " . $DB->sql_ilike() . " ? and wiki= ?".
" WHERE " . $DB->sql_like($field, '?', false) . " and wiki= ?".
" ORDER BY id, version ASC";
$result=$DB->get_records_sql($sql, array("%$content%", $wiki_entry->id));

Expand Down

0 comments on commit 086339d

Please sign in to comment.