r70177 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r70176‎ | r70177 | r70178 >
Date:21:16, 29 July 2010
Author:nikerabbit
Status:ok
Tags:
Comment:
escapeLike to buildLike
Modified paths:
  • /trunk/extensions/Translate/SpecialTranslationStats.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/SpecialTranslationStats.php
@@ -484,7 +484,7 @@
485485 }
486486
487487 foreach( $this->codes as $code ) {
488 - $languages[] = 'rc_title like \'%%/' . $db->escapeLike( $code ) . "'";
 488+ $languages[] = 'rc_title ' . $db->buildLike( $db->anyString(), "/$code" );
489489 }
490490
491491 if ( count( $namespaces ) ) {

Status & tagging log