From 132ae37b5226bd0c8f35095dd548d50afdcc5f0a Mon Sep 17 00:00:00 2001 From: Rotem Liss Date: Sun, 3 Sep 2006 15:58:26 +0000 Subject: [PATCH] (bug 7220) Don't override the edit summary with the default section editing summary when the edit is filtered (e.g. for spam protection or locked database) --- includes/EditPage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/EditPage.php b/includes/EditPage.php index e554690b35..5bf3e76321 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -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 ); -- 2.20.1