From: Aaron Schulz Date: Thu, 17 Apr 2008 21:06:31 +0000 (+0000) Subject: revisiondeletion log clean up X-Git-Tag: 1.31.0-rc.0~48221 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/password.php?a=commitdiff_plain;h=047611682a56b3e4eec75f6919ff3dd3581a8a25;p=lhc%2Fweb%2Fwiklou.git revisiondeletion log clean up --- 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)";