From: Ilmari Karonen Date: Tue, 28 Nov 2006 00:32:00 +0000 (+0000) Subject: make undelete preview more consistent with normal article view (tidy, pagename) X-Git-Tag: 1.31.0-rc.0~55055 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/membres/fiche.php?a=commitdiff_plain;h=ca9862f455e73bdbec4fe5f48eb85740cb0ea481;p=lhc%2Fweb%2Fwiklou.git make undelete preview more consistent with normal article view (tidy, pagename) --- diff --git a/includes/SpecialUndelete.php b/includes/SpecialUndelete.php index f3bdb6a448..9793b302b2 100644 --- a/includes/SpecialUndelete.php +++ b/includes/SpecialUndelete.php @@ -533,7 +533,8 @@ class UndeleteForm { if( $this->mPreview ) { $wgOut->addHtml( "
\n" ); - $wgOut->addWikiText( $rev->getText() ); + $article = new Article ( $archive->title ); # OutputPage wants an Article obj + $wgOut->addPrimaryWikiText( $rev->getText(), $article, false ); } $self = SpecialPage::getTitleFor( "Undelete" );