From e7f7edc0635e9d2dba7b24e1581de8075aa62605 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Sun, 26 Apr 2009 06:49:25 +0000 Subject: [PATCH] Per Raymond's comment at http://www.mediawiki.org/wiki/Special:Code/MediaWiki/49885#c2292 : Don't show """ cannot be used as a page title" when no title was passed :) --- includes/specials/SpecialCreatePage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/specials/SpecialCreatePage.php b/includes/specials/SpecialCreatePage.php index ba0ce4152b..473129ba4f 100644 --- a/includes/specials/SpecialCreatePage.php +++ b/includes/specials/SpecialCreatePage.php @@ -40,7 +40,7 @@ class SpecialCreatePage extends SpecialPage { // check for no title if ( $wgRequest->wasPosted() && $target === '' ) { $this->error( wfMsg( 'createpage-entertitle' ) ); - } elseif ( $target !== '' ) { + } elseif ( $target !== null ) { if ( !$title instanceof Title ) { // check for invalid title $this->error( wfMsg( 'createpage-badtitle', $target ) ); -- 2.20.1