From c1e9e08e15552c942c0fdd5fdb354eda25b25ece Mon Sep 17 00:00:00 2001 From: Happy-melon Date: Wed, 30 Mar 2011 18:06:05 +0000 Subject: [PATCH] Follow-up r85020 per CR - use strict comparison --- includes/EditPage.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/EditPage.php b/includes/EditPage.php index 5ac268d5be..9d85d6c675 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -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( '
' . wfMsgExt( $key, 'parseinline', $username, "$comment" ) . -- 2.20.1