From e591bda6fd0967dd28bea4f54ab4697f31ee8def Mon Sep 17 00:00:00 2001 From: Siebrand Mazeland Date: Mon, 8 Oct 2012 01:57:15 +0200 Subject: [PATCH] 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 --- includes/actions/HistoryAction.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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', -- 2.20.1