(bug 5364) Don't raise false blank summary reminder when adding a new section
authorRob Church <robchurch@users.mediawiki.org>
Sun, 26 Mar 2006 23:50:19 +0000 (23:50 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Sun, 26 Mar 2006 23:50:19 +0000 (23:50 +0000)
includes/EditPage.php

index 670757b..3e8c46e 100644 (file)
@@ -633,7 +633,7 @@ class EditPage {
                }
 
                # Handle the user preference to force summaries here
-               if( !$this->allowBlankSummary && $wgUser->getOption( 'forceeditsummary' ) ) {
+               if( $this->section != 'new' && !$this->allowBlankSummary && $wgUser->getOption( 'forceeditsummary' ) ) {
                        if( md5( $this->summary ) == $this->autoSumm ) {
                                $this->missingSummary = true;
                                wfProfileOut( $fname );