From: Alexandre Emsenhuber Date: Sun, 26 Apr 2009 06:49:25 +0000 (+0000) Subject: Per Raymond's comment at http://www.mediawiki.org/wiki/Special:Code/MediaWiki/49885... X-Git-Tag: 1.31.0-rc.0~42014 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=e7f7edc0635e9d2dba7b24e1581de8075aa62605;p=lhc%2Fweb%2Fwiklou.git Per Raymond's comment at mediawiki.org/wiki/Special:Code/MediaWiki/49885#c2292 : Don't show """ cannot be used as a page title" when no title was passed :) --- 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 ) );