When a curid that doesn't exist is requested, cause the "Bad title" error
to be displayed rather than displaying the Main Page.
Bug: 58885
Change-Id: If54ca35b3799b8cf2f76e7f8a03001caa1fac676
}
// Use the main page as default title if nothing else has been provided
- if ( $ret === null && strval( $title ) === '' && $action !== 'delete' ) {
+ if ( $ret === null && strval( $title ) === '' && !$request->getCheck( 'curid' ) && $action !== 'delete' ) {
$ret = Title::newMainPage();
}