r20418 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r20417‎ | r20418 | r20419 >
Date:00:02, 14 March 2007
Author:greg
Status:old
Tags:
Comment:
Use LOWER, not LCASE
Modified paths:
  • /trunk/phase3/includes/SpecialImagelist.php (modified) (history)
  • /trunk/phase3/includes/SpecialNewimages.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SpecialNewimages.php
@@ -80,7 +80,7 @@
8181 $m = $dbr->strencode( strtolower( $nt->getDBkey() ) );
8282 $m = str_replace( '%', "\\%", $m );
8383 $m = str_replace( '_', "\\_", $m );
84 - $where[] = "LCASE(img_name) LIKE '%{$m}%'";
 84+ $where[] = "LOWER(img_name) LIKE '%{$m}%'";
8585 $searchpar = '&wpIlMatch=' . urlencode( $wpIlMatch );
8686 }
8787 }
Index: trunk/phase3/includes/SpecialImagelist.php
@@ -43,7 +43,7 @@
4444 $m = $dbr->strencode( strtolower( $nt->getDBkey() ) );
4545 $m = str_replace( "%", "\\%", $m );
4646 $m = str_replace( "_", "\\_", $m );
47 - $this->mQueryConds = array( "LCASE(img_name) LIKE '%{$m}%'" );
 47+ $this->mQueryConds = array( "LOWER(img_name) LIKE '%{$m}%'" );
4848 }
4949 }
5050