From d03e586e32ceef7e76c55621d86d1572d3dcf047 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bartosz=20Dziewo=C5=84ski?= Date: Tue, 25 Jul 2017 19:20:31 +0200 Subject: [PATCH] SpecialUndelete: Remove commented-out code This has been commented-out since 2006 (8a42f0b1 / r14777). I think it's safe to bet it won't be needed again. Change-Id: Ice85b734803fd5e5d98692ca284a987f17712bc1 --- includes/specials/SpecialUndelete.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/includes/specials/SpecialUndelete.php b/includes/specials/SpecialUndelete.php index 39904b05a1..e7478ee209 100644 --- a/includes/specials/SpecialUndelete.php +++ b/includes/specials/SpecialUndelete.php @@ -669,13 +669,7 @@ class SpecialUndelete extends SpecialPage { $archive = new PageArchive( $this->mTargetObj, $this->getConfig() ); Hooks::run( 'UndeleteForm::showHistory', [ &$archive, $this->mTargetObj ] ); - /* - $text = $archive->getLastRevisionText(); - if( is_null( $text ) ) { - $out->addWikiMsg( 'nohistory' ); - return; - } - */ + $out->addHTML( '
' ); if ( $this->mAllowed ) { $out->addWikiMsg( 'undeletehistory' ); -- 2.20.1