r32971 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r32970‎ | r32971 | r32972 >
Date:18:04, 8 April 2008
Author:brion
Status:old
Tags:
Comment:
tweak to r32864 -- remove extra parameters from string replacement which were removed from captures
Modified paths:
  • /trunk/phase3/includes/EditPage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/EditPage.php
@@ -544,7 +544,7 @@
545545 $this->summary = $wgLang->truncate( $request->getText( 'wpSummary' ), 250 );
546546
547547 # Remove extra headings from summaries and new sections.
548 - $this->summary = preg_replace('/^\s*=+\s*(.*?)\s*=+\s*$/', '$1$2$3', $this->summary);
 548+ $this->summary = preg_replace('/^\s*=+\s*(.*?)\s*=+\s*$/', '$1', $this->summary);
549549
550550 $this->edittime = $request->getVal( 'wpEdittime' );
551551 $this->starttime = $request->getVal( 'wpStarttime' );

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r32864Slight tweak to last commit: don't preserve whitespace if it is actually a he...simetrical18:04, 6 April 2008

Status & tagging log