dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fea912a
)
Follow-up r85020 per CR - use strict comparison
author
Happy-melon
<happy-melon@users.mediawiki.org>
Wed, 30 Mar 2011 18:06:05 +0000
(18:06 +0000)
committer
Happy-melon
<happy-melon@users.mediawiki.org>
Wed, 30 Mar 2011 18:06:05 +0000
(18:06 +0000)
includes/EditPage.php
patch
|
blob
|
history
diff --git
a/includes/EditPage.php
b/includes/EditPage.php
index
5ac268d
..
9d85d6c
100644
(file)
--- 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(
'<div class="mw-confirm-recreate">' .
wfMsgExt( $key, 'parseinline', $username, "<nowiki>$comment</nowiki>" ) .