Reset the page title after adding preview parser output to the output page
authorRob Church <robchurch@users.mediawiki.org>
Mon, 25 Jun 2007 20:40:04 +0000 (20:40 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Mon, 25 Jun 2007 20:40:04 +0000 (20:40 +0000)
includes/EditPage.php

index e09114d..804bbef 100644 (file)
@@ -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)