r69087 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r69086‎ | r69087 | r69088 >
Date:09:30, 6 July 2010
Author:nikerabbit
Status:reverted
Tags:
Comment:
Append language code to special pages instead of not doing anything
Modified paths:
  • /trunk/extensions/Translate/SpecialMyLanguage.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/SpecialMyLanguage.php
@@ -22,9 +22,9 @@
2323 $title = null;
2424 if ( strval($par) !== '' ) {
2525 $title = Title::newFromText( $par );
26 - if ( $title && $title->exists() ) {
 26+ if ( $title && ( $title->exists() || $title->isAlwaysKnown() ) ) {
2727 $local = Title::newFromText( "$par/" . $wgLang->getCode() );
28 - if ( $local && $local->exists() ) {
 28+ if ( $local && ( $local->exists() || $local->isAlwaysKnown() ) ) {
2929 $title = $local;
3030 }
3131 }

Follow-up revisions

RevisionCommit summaryAuthorDate
r69092* revert r69087...siebrand13:43, 6 July 2010

Status & tagging log