r23403 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r23402‎ | r23403 | r23404 >
Date:20:40, 25 June 2007
Author:robchurch
Status:old
Tags:
Comment:
Reset the page title after adding preview parser output to the output page
Modified paths:
  • /trunk/phase3/includes/EditPage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/EditPage.php
@@ -1420,6 +1420,9 @@
14211421
14221422 $previewHTML = $parserOutput->getText();
14231423 $wgOut->addParserOutputNoText( $parserOutput );
 1424+
 1425+ # ParserOutput might have altered the page title, so reset it
 1426+ $wgOut->setPageTitle( wfMsg( 'editing', $this->mTitle->getPrefixedText() ) );
14241427
14251428 foreach ( $parserOutput->getTemplates() as $ns => $template)
14261429 foreach ( array_keys( $template ) as $dbk)

Follow-up revisions

RevisionCommit summaryAuthorDate
r23407Merged revisions 23203-23405 via svnmerge from...david23:00, 25 June 2007

Status & tagging log