From: Rob Church Date: Mon, 25 Jun 2007 20:40:04 +0000 (+0000) Subject: Reset the page title after adding preview parser output to the output page X-Git-Tag: 1.31.0-rc.0~52399 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=e1690e5716fade6d3dcbce359650e131fcca7ee3;p=lhc%2Fweb%2Fwiklou.git Reset the page title after adding preview parser output to the output page --- diff --git a/includes/EditPage.php b/includes/EditPage.php index e09114d447..804bbeff89 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -1420,6 +1420,9 @@ END $previewHTML = $parserOutput->getText(); $wgOut->addParserOutputNoText( $parserOutput ); + + # ParserOutput might have altered the page title, so reset it + $wgOut->setPageTitle( wfMsg( 'editing', $this->mTitle->getPrefixedText() ) ); foreach ( $parserOutput->getTemplates() as $ns => $template) foreach ( array_keys( $template ) as $dbk)