(bug 5364) Don't raise false blank summary reminder when adding a new section

This commit is contained in:
Rob Church 2006-03-26 23:50:19 +00:00
parent 4ee1acde17
commit 6cd0519a30

View 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 );