From: Rotem Liss Date: Sun, 3 Sep 2006 15:58:26 +0000 (+0000) Subject: (bug 7220) Don't override the edit summary with the default section editing summary... X-Git-Tag: 1.31.0-rc.0~55846 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=132ae37b5226bd0c8f35095dd548d50afdcc5f0a;p=lhc%2Fweb%2Fwiklou.git (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) --- 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 );