From e1690e5716fade6d3dcbce359650e131fcca7ee3 Mon Sep 17 00:00:00 2001 From: Rob Church Date: Mon, 25 Jun 2007 20:40:04 +0000 Subject: [PATCH] Reset the page title after adding preview parser output to the output page --- includes/EditPage.php | 3 +++ 1 file changed, 3 insertions(+) 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) -- 2.20.1