dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2fb1477
)
Reset the page title after adding preview parser output to the output page
author
Rob Church
<robchurch@users.mediawiki.org>
Mon, 25 Jun 2007 20:40:04 +0000
(20:40 +0000)
committer
Rob Church
<robchurch@users.mediawiki.org>
Mon, 25 Jun 2007 20:40:04 +0000
(20:40 +0000)
includes/EditPage.php
patch
|
blob
|
history
diff --git
a/includes/EditPage.php
b/includes/EditPage.php
index
e09114d
..
804bbef
100644
(file)
--- 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)