(bug 5364) Don't raise false blank summary reminder when adding a new section
[lhc/web/wiklou.git] / 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 );