From 40a9c8f6ce08e4e18469d2f8596b1323068194a9 Mon Sep 17 00:00:00 2001 From: X! Date: Tue, 3 Feb 2009 13:56:31 +0000 Subject: [PATCH] When creating a new section, one can specify the 'nosummary' parameter to disallow creation of a section title --- includes/EditPage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/EditPage.php b/includes/EditPage.php index 74ce16e514..b5aca920fc 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -1340,7 +1340,7 @@ class EditPage { $autosumm = $this->autoSumm ? $this->autoSumm : md5( $this->summary ); $summaryhiddens .= Xml::hidden( 'wpAutoSummary', $autosumm ); if ( $this->section == 'new' ) { - $commentsubject="\n{$summaryhiddens}
"; + $commentsubject = $wgRequest->getBool( 'nosummary' ) ? '' : "\n{$summaryhiddens}
"; $editsummary = "
\n"; global $wgParser; $formattedSummary = wfMsgForContent( 'newsectionsummary', $wgParser->stripSectionName( $this->summary ) ); -- 2.20.1