r60740 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r60739‎ | r60740 | r60741 >
Date:18:59, 6 January 2010
Author:siebrand
Status:ok
Tags:
Comment:
Follow-up to r60721. Broken maintanance/language/rebuildLanguage.php and probably more. Fix by Nikerabbit.
Modified paths:
  • /trunk/phase3/languages/Language.php (modified) (history)

Diff [purge]

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

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r60721Per CR on r58358, refactor obtaining the language code from a filename into L...catrope10:20, 6 January 2010

Status & tagging log