From c8cb1550c026c4d9c20e5c784da3231080a240fd Mon Sep 17 00:00:00 2001 From: Nick Jenkins Date: Tue, 14 Nov 2006 06:57:46 +0000 Subject: [PATCH] Prevent PHP notice on undefined $subjectpreview and $summarypreview variables in error_reporting(E_ALL) mode. --- includes/EditPage.php | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.20.1