From: Jackmcbarn Date: Fri, 3 Jan 2014 00:56:47 +0000 (-0500) Subject: Don't convert bad curids to the Main Page X-Git-Tag: 1.31.0-rc.0~17387^2 X-Git-Url: http://git.cyclocoop.org/%22%2C%20generer_url_ecrire%28?a=commitdiff_plain;h=1ad293efffbba4f624190b05247860ed979636fd;p=lhc%2Fweb%2Fwiklou.git 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 --- 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(); }