From af2df5002f696eb99114906bf051c28f2afb7e3b Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Wed, 29 Jun 2005 08:37:46 +0000 Subject: [PATCH] * (bug 2548) Keep summary on 'show changes' of section edit --- RELEASE-NOTES | 1 + includes/EditPage.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 39549a8816..5ddd471bc8 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -420,6 +420,7 @@ Various bugfixes, small features, and a few experimental things: * (bug 2564) Don't show "editingold" warning for recent revision * Various code cleanup and HTML escaping fixlets * Copy IRC-over-UDP update option from REL1_4 +* (bug 2548) Keep summary on 'show changes' of section edit === Caveats === diff --git a/includes/EditPage.php b/includes/EditPage.php index 8c2f3bdf29..1b53ba1a77 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -479,7 +479,7 @@ class EditPage { } else { $s = wfMsg('editingsection', $this->mTitle->getPrefixedText() ); } - if(!$this->preview) { + if( !$this->preview && !$this->diff ) { preg_match( "/^(=+)(.+)\\1/mi", $this->textbox1, $matches ); -- 2.20.1