r111452 MediaWiki - Code Review archive
Repository:
MediaWiki
Revision:
<
r111451
|
r111452
|
r111453
>
Date:
09:25, 14 February 2012
Author:
tstarling
Status:
ok (
Comments
)
Tags:
Comment:
Fix exception like in trunk
r111349
, simplified for easier merging
Modified paths:
/branches/REL1_19/extensions/cldr/LanguageNames.body.php
(modified) (
history
)
Diff
[
purge
]
Index: branches/REL1_19/extensions/cldr/LanguageNames.body.php
—
—
@@ -84,6 +84,10 @@
85
85
*/
86
86
private static function loadLanguage( $code ) {
87
87
if ( !isset( self::$cache[$code] ) ) {
88
+ if ( !Language::isValidBuiltInCode( $code ) ) {
89
+ return array();
90
+ }
91
+
88
92
wfProfileIn( __METHOD__ . '-recache' );
89
93
90
94
/* Load override for wrong or missing entries in cldr */
Follow-up revisions
Revision
Commit summary
Author
Date
r111453
Merged
r111452
from 1.19, equivalent to trunk
r111451
tstarling
09:27, 14 February 2012
r111454
Merged
r111452
from 1.19
tstarling
09:35, 14 February 2012
Past revisions this follows-up on
Revision
Commit summary
Author
Date
r111451
* Fixed an exception generated with {{#language:<nowiki>xx</nowiki>}} due to ...
tstarling
09:17, 14 February 2012
Comments
#
Comment by
Tim Starling
(
talk
|
contribs
)
09:37, 14 February 2012
Commit message should read "like in trunk
r111451
".
Status & tagging log
16:49, 14 February 2012
Nikerabbit
(
talk
|
contribs
)
changed the
status
of r111452
[
removed:
new
added:
ok]