From 1ad293efffbba4f624190b05247860ed979636fd Mon Sep 17 00:00:00 2001 From: Jackmcbarn Date: Thu, 2 Jan 2014 19:56:47 -0500 Subject: [PATCH] Don't convert bad curids to the Main Page 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 --- includes/Wiki.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Wiki.php b/includes/Wiki.php index 5ebf5a0798..201e9c59ef 100644 --- a/includes/Wiki.php +++ b/includes/Wiki.php @@ -117,7 +117,7 @@ class MediaWiki { } // 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(); } -- 2.20.1