(bug 33442) Dont prompt for summary on page creation.
authormrbluesky <mrbluesky@localhost>
Wed, 15 Feb 2012 21:20:05 +0000 (21:20 +0000)
committermrbluesky <mrbluesky@localhost>
Wed, 15 Feb 2012 21:20:05 +0000 (21:20 +0000)
includes/EditPage.php

index 28ace46..88a5c1c 100644 (file)
@@ -1223,17 +1223,6 @@ class EditPage {
                                return $status;
                        }
 
-                       # Handle the user preference to force summaries here. Check if it's not a redirect.
-                       if ( !$this->allowBlankSummary && !Title::newFromRedirect( $this->textbox1 ) ) {
-                               if ( md5( $this->summary ) == $this->autoSumm ) {
-                                       $this->missingSummary = true;
-                                       $status->fatal( 'missingsummary' ); // or 'missingcommentheader' if $section == 'new'. Blegh
-                                       $status->value = self::AS_SUMMARY_NEEDED;
-                                       wfProfileOut( __METHOD__ );
-                                       return $status;
-                               }
-                       }
-
                        $text = $this->textbox1;
                        $result['sectionanchor'] = '';
                        if ( $this->section == 'new' ) {