r107880 MediaWiki - Code Review archive
Repository:
MediaWiki
Revision:
<
r107879
|
r107880
|
r107881
>
Date:
11:57, 3 January 2012
Author:
nikerabbit
Status:
ok
Tags:
Comment:
Fix regression in Special:MyLanguage - don't bork on invalid titles
Modified paths:
/trunk/extensions/Translate/specials/SpecialMyLanguage.php
(modified) (
history
)
Diff
[
purge
]
Index: trunk/extensions/Translate/specials/SpecialMyLanguage.php
—
—
@@ -57,6 +57,10 @@
58
58
}
59
59
}
60
60
61
+ if ( !$base ) {
62
+ return null;
63
+ }
64
+
61
65
$uiCode = $wgLang->getCode();
62
66
$proposed = Title::newFromText( $base->getPrefixedText() . "/$uiCode" );
63
67
if ( $uiCode !== $wgLanguageCode && $proposed && $proposed->exists() ) {
Status & tagging log
12:01, 3 January 2012
Santhosh.thottingal
(
talk
|
contribs
)
changed the
status
of r107880
[
removed:
new
added:
ok]