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 @@
5858 }
5959 }
6060
 61+ if ( !$base ) {
 62+ return null;
 63+ }
 64+
6165 $uiCode = $wgLang->getCode();
6266 $proposed = Title::newFromText( $base->getPrefixedText() . "/$uiCode" );
6367 if ( $uiCode !== $wgLanguageCode && $proposed && $proposed->exists() ) {

Status & tagging log