r60741 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r60740‎ | r60741 | r60742 >
Date:19:24, 6 January 2010
Author:catrope
Status:ok
Tags:
Comment:
Followup to r60271: pass the delimeter to preg_quote() per CR comment
Modified paths:
  • /trunk/phase3/languages/Language.php (modified) (history)

Diff [purge]

Index: trunk/phase3/languages/Language.php
@@ -2509,8 +2509,8 @@
25102510 */
25112511 static function getCodeFromFileName( $filename, $prefix = 'Language', $suffix = '.php' ) {
25122512 $m = null;
2513 - preg_match( '/' . preg_quote( $prefix ) . '([A-Z][a-z_]+)' .
2514 - preg_quote( $suffix ) . '/', $filename, $m );
 2513+ preg_match( '/' . preg_quote( $prefix, '/' ) . '([A-Z][a-z_]+)' .
 2514+ preg_quote( $suffix, '/' ) . '/', $filename, $m );
25152515 if ( !count( $m ) ) {
25162516 return false;
25172517 }

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r60271UsabilityInitiative: Simplify sorting function, recombine and bump style vers...catrope18:39, 21 December 2009

Status & tagging log