From: Siebrand Mazeland Date: Sun, 7 Oct 2012 23:57:15 +0000 (+0200) Subject: Fix issue with link in history line for revs hidden from sysops X-Git-Tag: 1.31.0-rc.0~22114^2 X-Git-Url: https://git.heureux-cyclage.org/?a=commitdiff_plain;h=e591bda6fd0967dd28bea4f54ab4697f31ee8def;p=lhc%2Fweb%2Fwiklou.git Fix issue with link in history line for revs hidden from sysops Looks like this link should have been called $del instead of $cdel. Needs some verification. Blame came up with Aaron's change in https://www.mediawiki.org/wiki/Special:Code/MediaWiki/58351. Looks like it may have been a typo. Change-Id: I36607e1d1365ddfb0383d68702291509b94a931a --- diff --git a/includes/actions/HistoryAction.php b/includes/actions/HistoryAction.php index dcd6fe5505..a2d49e679c 100644 --- a/includes/actions/HistoryAction.php +++ b/includes/actions/HistoryAction.php @@ -572,7 +572,7 @@ class HistoryPager extends ReverseChronologicalPager { } elseif ( $rev->getVisibility() && $user->isAllowed( 'deletedhistory' ) ) { // If revision was hidden from sysops, disable the link if ( !$rev->userCan( Revision::DELETED_RESTRICTED, $user ) ) { - $cdel = Linker::revDeleteLinkDisabled( false ); + $del = Linker::revDeleteLinkDisabled( false ); // Otherwise, show the link... } else { $query = array( 'type' => 'revision',