From 0f49c7b259cc586ad464b9d9d77ef7678450f393 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Tue, 8 Apr 2008 18:04:55 +0000 Subject: [PATCH] tweak to r32864 -- remove extra parameters from string replacement which were removed from captures --- includes/EditPage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/EditPage.php b/includes/EditPage.php index 3ec0ec009e..5d294857d6 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -544,7 +544,7 @@ class EditPage { $this->summary = $wgLang->truncate( $request->getText( 'wpSummary' ), 250 ); # Remove extra headings from summaries and new sections. - $this->summary = preg_replace('/^\s*=+\s*(.*?)\s*=+\s*$/', '$1$2$3', $this->summary); + $this->summary = preg_replace('/^\s*=+\s*(.*?)\s*=+\s*$/', '$1', $this->summary); $this->edittime = $request->getVal( 'wpEdittime' ); $this->starttime = $request->getVal( 'wpStarttime' ); -- 2.20.1