tweak to r32864 -- remove extra parameters from string replacement which were removed from captures

This commit is contained in:
Brion Vibber 2008-04-08 18:04:55 +00:00
parent e5b76c3068
commit 0f49c7b259

View file

@ -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' );