From: Greg Sabino Mullane Date: Wed, 14 Mar 2007 00:02:14 +0000 (+0000) Subject: Use LOWER, not LCASE X-Git-Tag: 1.31.0-rc.0~53764 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/bilan.php?a=commitdiff_plain;h=6055a3dc5aba51e14d03b920025ce03d49371713;p=lhc%2Fweb%2Fwiklou.git Use LOWER, not LCASE --- diff --git a/includes/SpecialImagelist.php b/includes/SpecialImagelist.php index 84cbfce5b3..390fb54d04 100644 --- a/includes/SpecialImagelist.php +++ b/includes/SpecialImagelist.php @@ -43,7 +43,7 @@ class ImageListPager extends TablePager { $m = $dbr->strencode( strtolower( $nt->getDBkey() ) ); $m = str_replace( "%", "\\%", $m ); $m = str_replace( "_", "\\_", $m ); - $this->mQueryConds = array( "LCASE(img_name) LIKE '%{$m}%'" ); + $this->mQueryConds = array( "LOWER(img_name) LIKE '%{$m}%'" ); } } diff --git a/includes/SpecialNewimages.php b/includes/SpecialNewimages.php index 817d64972a..1e114b3605 100644 --- a/includes/SpecialNewimages.php +++ b/includes/SpecialNewimages.php @@ -80,7 +80,7 @@ function wfSpecialNewimages( $par, $specialPage ) { $m = $dbr->strencode( strtolower( $nt->getDBkey() ) ); $m = str_replace( '%', "\\%", $m ); $m = str_replace( '_', "\\_", $m ); - $where[] = "LCASE(img_name) LIKE '%{$m}%'"; + $where[] = "LOWER(img_name) LIKE '%{$m}%'"; $searchpar = '&wpIlMatch=' . urlencode( $wpIlMatch ); } }