From: Brion Vibber Date: Mon, 1 Sep 2003 06:50:57 +0000 (+0000) Subject: Hide undelete link for existing articles with an undelete history, unless in history... X-Git-Tag: 1.1.0~299 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/modifier.php?a=commitdiff_plain;h=f04a62aa9ad74a92f908b87c3ab8b7b2694141e8;p=lhc%2Fweb%2Fwiklou.git Hide undelete link for existing articles with an undelete history, unless in history view (articles with no current versions but with deleted versions will always be shown) --- diff --git a/includes/Skin.php b/includes/Skin.php index ed971e4417..493ffde383 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -368,6 +368,7 @@ class Skin { } } if( $wgUser->isSysop() && + (($wgTitle->getArticleId() == 0) || ($action == "history")) && ($n = $wgTitle->isDeleted() ) ) { $s .= " | " . wfMsg( "thisisdeleted", $this->makeKnownLink(