(bug 7220) Don't override the edit summary with the default section editing summary...
authorRotem Liss <rotem@users.mediawiki.org>
Sun, 3 Sep 2006 15:58:26 +0000 (15:58 +0000)
committerRotem Liss <rotem@users.mediawiki.org>
Sun, 3 Sep 2006 15:58:26 +0000 (15:58 +0000)
includes/EditPage.php

index e554690..5bf3e76 100644 (file)
@@ -845,7 +845,7 @@ class EditPage {
                                        $s = wfMsg('editingcomment', $this->mTitle->getPrefixedText() );
                                } else {
                                        $s = wfMsg('editingsection', $this->mTitle->getPrefixedText() );
-                                       if( !$this->preview && !$this->diff ) {
+                                       if( !$this->summary && !$this->preview && !$this->diff ) {
                                                preg_match( "/^(=+)(.+)\\1/mi",
                                                        $this->textbox1,
                                                        $matches );