Follow-up r85020 per CR - use strict comparison
authorHappy-melon <happy-melon@users.mediawiki.org>
Wed, 30 Mar 2011 18:06:05 +0000 (18:06 +0000)
committerHappy-melon <happy-melon@users.mediawiki.org>
Wed, 30 Mar 2011 18:06:05 +0000 (18:06 +0000)
includes/EditPage.php

index 5ac268d..9d85d6c 100644 (file)
@@ -1356,7 +1356,9 @@ HTML
 
                        // It is better to not parse the comment at all than to have templates expanded in the middle
                        // TODO: can the checkLabel be moved outside of the div so that wrapWikiMsg could be used?
-                       $key = $comment ? 'confirmrecreate' : 'confirmrecreate-noreason';
+                       $key = $comment === ''
+                               ? 'confirmrecreate-noreason'
+                               : 'confirmrecreate';
                        $wgOut->addHTML(
                                '<div class="mw-confirm-recreate">' .
                                wfMsgExt( $key, 'parseinline', $username, "<nowiki>$comment</nowiki>" ) .