From ca9862f455e73bdbec4fe5f48eb85740cb0ea481 Mon Sep 17 00:00:00 2001 From: Ilmari Karonen Date: Tue, 28 Nov 2006 00:32:00 +0000 Subject: [PATCH] make undelete preview more consistent with normal article view (tidy, pagename) --- includes/SpecialUndelete.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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" ); -- 2.20.1