From: Nick Jenkins Date: Tue, 14 Nov 2006 06:57:46 +0000 (+0000) Subject: Prevent PHP notice on undefined $subjectpreview and $summarypreview variables in... X-Git-Tag: 1.31.0-rc.0~55189 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=c8cb1550c026c4d9c20e5c784da3231080a240fd;p=lhc%2Fweb%2Fwiklou.git Prevent PHP notice on undefined $subjectpreview and $summarypreview variables in error_reporting(E_ALL) mode. --- diff --git a/includes/EditPage.php b/includes/EditPage.php index 5775e1ac42..30cb2818be 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -1022,10 +1022,12 @@ class EditPage { $commentsubject="\n
\n
"; $editsummary = ''; $subjectpreview = $summarytext && $this->preview ? "
".wfMsg('subject-preview').':'.$sk->commentBlock( $this->summary, $this->mTitle )."
\n" : ''; + $summarypreview = ''; } else { $commentsubject = ''; $editsummary="\n
\n
"; $summarypreview = $summarytext && $this->preview ? "
".wfMsg('summary-preview').':'.$sk->commentBlock( $this->summary, $this->mTitle )."
\n" : ''; + $subjectpreview = ''; } # Set focus to the edit box on load, except on preview or diff, where it would interfere with the display