From: Brion Vibber Date: Tue, 8 Apr 2008 18:04:55 +0000 (+0000) Subject: tweak to r32864 -- remove extra parameters from string replacement which were removed... X-Git-Tag: 1.31.0-rc.0~48527 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=0f49c7b259cc586ad464b9d9d77ef7678450f393;p=lhc%2Fweb%2Fwiklou.git tweak to r32864 -- remove extra parameters from string replacement which were removed from captures --- 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' );