From: X! Date: Tue, 3 Feb 2009 13:56:31 +0000 (+0000) Subject: When creating a new section, one can specify the 'nosummary' parameter to disallow... X-Git-Tag: 1.31.0-rc.0~43059 X-Git-Url: https://git.cyclocoop.org/%27.%24link.%27?a=commitdiff_plain;h=40a9c8f6ce08e4e18469d2f8596b1323068194a9;p=lhc%2Fweb%2Fwiklou.git When creating a new section, one can specify the 'nosummary' parameter to disallow creation of a section title --- 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 ) );