r111585 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r111584‎ | r111585 | r111586 >
Date:21:20, 15 February 2012
Author:mrbluesky
Status:ok
Tags:
Comment:
(bug 33442) Dont prompt for summary on page creation.
Modified paths:
  • /trunk/phase3/includes/EditPage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/EditPage.php
@@ -1223,17 +1223,6 @@
12241224 return $status;
12251225 }
12261226
1227 - # Handle the user preference to force summaries here. Check if it's not a redirect.
1228 - if ( !$this->allowBlankSummary && !Title::newFromRedirect( $this->textbox1 ) ) {
1229 - if ( md5( $this->summary ) == $this->autoSumm ) {
1230 - $this->missingSummary = true;
1231 - $status->fatal( 'missingsummary' ); // or 'missingcommentheader' if $section == 'new'. Blegh
1232 - $status->value = self::AS_SUMMARY_NEEDED;
1233 - wfProfileOut( __METHOD__ );
1234 - return $status;
1235 - }
1236 - }
1237 -
12381227 $text = $this->textbox1;
12391228 $result['sectionanchor'] = '';
12401229 if ( $this->section == 'new' ) {

Status & tagging log