$wgImportTargetNamespace specifies the default, to be used for
Wiktionary's 'Transwiki:' namespace etc.
* (bug 6506) Update to German localisation (de)
+* (bug 502) Avoid silly tabs on bad title by using virtual special page
== Compatibility ==
$title = Title::makeTitle( NS_SPECIAL, 'Search' );
wfSpecialSearch();
} else if( !$title or $title->getDBkey() == '' ) {
- $title = Title::newFromText( wfMsgForContent( 'badtitle' ) );
+ $title = Title::makeTitle( NS_SPECIAL, 'Badtitle' );
# Die now before we mess up $wgArticle and the skin stops working
throw new ErrorPageError( 'badtitle', 'badtitletext' );
} else if ( $title->getInterwiki() != '' ) {
if ( !preg_match( '/^' . preg_quote( $this->getVal('Server'), '/' ) . '/', $url ) && $title->isLocal() ) {
$output->redirect( $url );
} else {
- $title = Title::newFromText( wfMsgForContent( 'badtitle' ) );
+ $title = Title::makeTitle( NS_SPECIAL, 'Badtitle' );
throw new ErrorPageError( 'badtitle', 'badtitletext' );
}
} else if ( ( $action == 'view' ) &&