From 383ac92910fce10d5a6a9bd5754fbb41eb1ccfd8 Mon Sep 17 00:00:00 2001 From: Andrew Garrett Date: Mon, 23 Nov 2009 13:27:34 +0000 Subject: [PATCH] Enabling change for r59356, allow programmatic control over whether or not the summary field is shown --- includes/EditPage.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/EditPage.php b/includes/EditPage.php index 1a742bba92..3139ecc4c6 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -67,6 +67,7 @@ class EditPage { #var $mPreviewTemplates; var $mParserOutput; var $mBaseRevision = false; + var $mShowSummaryField = true; # Form values var $save = false, $preview = false, $diff = false; @@ -1455,8 +1456,9 @@ class EditPage { ) ); // No idea where this is closed. + $editsummary .= '
'; $editsummary = Xml::openElement( 'div', array( 'class' => 'editOptions' ) ) - . $editsummary . '
'; + . ($this->mShowSummaryField ? $editsummary : ''); $summarypreview = ''; if ( $summarytext && ( $this->preview || $this->diff ) ) { -- 2.20.1