r98282 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r98281‎ | r98282 | r98283 >
Date:22:51, 27 September 2011
Author:tstarling
Status:ok
Tags:
Comment:
MFT r98278: fix #time default language
Modified paths:
  • /branches/wmf/1.18wmf1/extensions/ParserFunctions/ParserFunctions_body.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.18wmf1/extensions/ParserFunctions/ParserFunctions_body.php
@@ -505,7 +505,7 @@
506506 return '<strong class="error">' . wfMsgForContent( 'pfunc_time_too_long' ) . '</strong>';
507507 } else {
508508 if ( $ts < 100000000000000 ) { // Language can't deal with years after 9999
509 - if ( Language::isValidBuiltInCode( $language ) ) {
 509+ if ( $language !== '' && Language::isValidBuiltInCode( $language ) ) {
510510 // use whatever language is passed as a parameter
511511 $langObject = Language::factory( $language );
512512 $result = $langObject->sprintfDate( $format, $ts );
Property changes on: branches/wmf/1.18wmf1/extensions/ParserFunctions/ParserFunctions_body.php
___________________________________________________________________
Added: svn:mergeinfo
513513 Merged /trunk/extensions/ParserFunctions/ParserFunctions_body.php:r92571-92572,96499,96502,96505,98278

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r98278Revert r92572: Language::isValidBuiltInCode() only rejected the empty string ...tstarling22:47, 27 September 2011

Status & tagging log