From: Bartosz DziewoƄski Date: Tue, 25 Jul 2017 17:20:31 +0000 (+0200) Subject: SpecialUndelete: Remove commented-out code X-Git-Tag: 1.31.0-rc.0~2583 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/supprimer.php?a=commitdiff_plain;h=d03e586e32ceef7e76c55621d86d1572d3dcf047;p=lhc%2Fweb%2Fwiklou.git 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 --- 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' );