r51896 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r51895‎ | r51896 | r51897 >
Date:12:48, 15 June 2009
Author:nikerabbit
Status:ok
Tags:
Comment:
Possible fix for Special%3ATranslations/Returnto&namespace=8 requested by Splarka
Modified paths:
  • /trunk/extensions/Translate/SpecialTranslations.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/SpecialTranslations.php
@@ -43,11 +43,11 @@
4444
4545 # GET values
4646 $message = $wgRequest->getText( 'message' );
47 - $namespace = $wgRequest->getInt( 'namespace' );
 47+ $namespace = $wgRequest->getInt( 'namespace', NS_MAIN );
4848 if ( $message !== '' ) {
4949 $title = Title::newFromText( $message, $namespace );
5050 } else {
51 - $title = Title::newFromText( $par );
 51+ $title = Title::newFromText( $par, $namespace );
5252 }
5353
5454 if ( !$title ) {

Status & tagging log