From 6f2ab1c80a41d50ade1dcfe75d6d11180cf9d34e Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Wed, 3 Jan 2007 15:09:53 +0000 Subject: [PATCH] only generate preview output when the request is actually a preview --- includes/EditPage.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/EditPage.php b/includes/EditPage.php index 722ff072d9..5c36690d6c 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -987,7 +987,9 @@ class EditPage { #need to parse the preview early so that we know which templates are used, #otherwise users with "show preview after edit box" will get a blank list - $previewOutput = $this->getPreviewText(); + if ( $this->formtype == 'preview' ) { + $previewOutput = $this->getPreviewText(); + } $rows = $wgUser->getIntOption( 'rows' ); $cols = $wgUser->getIntOption( 'cols' ); -- 2.20.1