make undelete preview more consistent with normal article view (tidy, pagename)
authorIlmari Karonen <vyznev@users.mediawiki.org>
Tue, 28 Nov 2006 00:32:00 +0000 (00:32 +0000)
committerIlmari Karonen <vyznev@users.mediawiki.org>
Tue, 28 Nov 2006 00:32:00 +0000 (00:32 +0000)
includes/SpecialUndelete.php

index f3bdb6a..9793b30 100644 (file)
@@ -533,7 +533,8 @@ class UndeleteForm {
                
                if( $this->mPreview ) {
                        $wgOut->addHtml( "<hr />\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" );