Index: trunk/extensions/Translate/SpecialTranslations.php |
— | — | @@ -43,11 +43,11 @@ |
44 | 44 | |
45 | 45 | # GET values |
46 | 46 | $message = $wgRequest->getText( 'message' ); |
47 | | - $namespace = $wgRequest->getInt( 'namespace' ); |
| 47 | + $namespace = $wgRequest->getInt( 'namespace', NS_MAIN ); |
48 | 48 | if ( $message !== '' ) { |
49 | 49 | $title = Title::newFromText( $message, $namespace ); |
50 | 50 | } else { |
51 | | - $title = Title::newFromText( $par ); |
| 51 | + $title = Title::newFromText( $par, $namespace ); |
52 | 52 | } |
53 | 53 | |
54 | 54 | if ( !$title ) { |