From 047611682a56b3e4eec75f6919ff3dd3581a8a25 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Thu, 17 Apr 2008 21:06:31 +0000 Subject: [PATCH] revisiondeletion log clean up --- includes/LogEventsList.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/LogEventsList.php b/includes/LogEventsList.php index 6c4627923a..e9dfc48b88 100644 --- a/includes/LogEventsList.php +++ b/includes/LogEventsList.php @@ -250,17 +250,17 @@ class LogEventsList { if( count($paramArray) == 2 ) { $revdel = SpecialPage::getTitleFor( 'Revisiondelete' ); // Different revision types use different URL params... - $subtype = isset($paramArray[2]) ? $paramArray[1] : ''; + $key = $paramArray[0]; // Link to each hidden object ID, $paramArray[1] is the url param. List if several... - $Ids = explode( ',', $paramArray[2] ); + $Ids = explode( ',', $paramArray[1] ); if( count($Ids) == 1 ) { $revert = $this->skin->makeKnownLinkObj( $revdel, $this->message['revdel-restore'], - wfArrayToCGI( array('target' => $title->getPrefixedDBkey(), $paramArray[1] => $Ids[0] ) ) ); + wfArrayToCGI( array('target' => $title->getPrefixedDBkey(), $key => $Ids[0] ) ) ); } else { $revert .= $this->message['revdel-restore'].':'; foreach( $Ids as $n => $id ) { $revert .= ' '.$this->skin->makeKnownLinkObj( $revdel, '#'.($n+1), - wfArrayToCGI( array('target' => $title->getPrefixedDBkey(), $paramArray[1] => $id ) ) ); + wfArrayToCGI( array('target' => $title->getPrefixedDBkey(), $key => $id ) ) ); } } $revert = "($revert)"; -- 2.20.1