* (bug 3617) Update for portuguese language (pt)
* Namespaces hacks on LanguagePl
* New preferences design and reorganisation
-* (bug 2585) Return proper 404 code when pages don't exist
* (bug 3684) Fix typo in fatal error backtraces in Hooks.php
* (bug 3682) LanguageSr.php - added convertPlural
* (bug 3694) LanguageTr.php update
if ( !$wgUseValidation ) # Are we using article validation at all?
{
- $wgOut->setStatusCode( 404 );
$wgOut->errorpage( "nosuchspecialpage", "nospecialpagetext" );
return ;
}
$fname = 'Article::info';
if ( !$wgAllowPageInfo ) {
- $wgOut->setStatusCode( 400 );
$wgOut->errorpage( 'nosuchaction', 'nosuchactiontext' );
return;
}
wfSpecialSearch();
} else if( !$wgTitle or $wgTitle->getDBkey() == '' ) {
$wgTitle = Title::newFromText( wfMsgForContent( 'badtitle' ) );
- $wgOut->setStatusCode( 404 );
$wgOut->errorpage( 'badtitle', 'badtitletext' );
} else if ( $wgTitle->getInterwiki() != '' ) {
if( $rdfrom = $wgRequest->getVal( 'rdfrom' ) ) {
$wgOut->redirect( $url );
} else {
$wgTitle = Title::newFromText( wfMsgForContent( 'badtitle' ) );
- $wgOut->setStatusCode( 404 );
$wgOut->errorpage( 'badtitle', 'badtitletext' );
}
} else if ( ( $action == 'view' ) &&
$wgTitle = Title::makeTitle( NS_IMAGE, $wgTitle->getDBkey() );
}
- if ( !$wgTitle->exists() ) {
- $wgOut->setStatusCode( 404 );
- }
-
$ns = $wgTitle->getNamespace();
// Namespace might change when using redirects
}
if ( in_array( $action, $wgDisabledActions ) ) {
- $wgOut->setStatusCode( 404 );
$wgOut->errorpage( 'nosuchaction', 'nosuchactiontext' );
} else {
switch( $action ) {
break;
default:
if (wfRunHooks('UnknownAction', array($action, $wgArticle))) {
- $wgOut->setStatusCode( 404 );
$wgOut->errorpage( 'nosuchaction', 'nosuchactiontext' );
}
}