From: Happy-melon Date: Wed, 30 Mar 2011 18:06:05 +0000 (+0000) Subject: Follow-up r85020 per CR - use strict comparison X-Git-Tag: 1.31.0-rc.0~31123 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmes_infos.php?a=commitdiff_plain;h=c1e9e08e15552c942c0fdd5fdb354eda25b25ece;p=lhc%2Fweb%2Fwiklou.git Follow-up r85020 per CR - use strict comparison --- 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" ) .