Index: trunk/phase3/includes/LogEventsList.php |
— | — | @@ -250,17 +250,17 @@ |
251 | 251 | if( count($paramArray) == 2 ) { |
252 | 252 | $revdel = SpecialPage::getTitleFor( 'Revisiondelete' ); |
253 | 253 | // Different revision types use different URL params... |
254 | | - $subtype = isset($paramArray[2]) ? $paramArray[1] : ''; |
| 254 | + $key = $paramArray[0]; |
255 | 255 | // Link to each hidden object ID, $paramArray[1] is the url param. List if several... |
256 | | - $Ids = explode( ',', $paramArray[2] ); |
| 256 | + $Ids = explode( ',', $paramArray[1] ); |
257 | 257 | if( count($Ids) == 1 ) { |
258 | 258 | $revert = $this->skin->makeKnownLinkObj( $revdel, $this->message['revdel-restore'], |
259 | | - wfArrayToCGI( array('target' => $title->getPrefixedDBkey(), $paramArray[1] => $Ids[0] ) ) ); |
| 259 | + wfArrayToCGI( array('target' => $title->getPrefixedDBkey(), $key => $Ids[0] ) ) ); |
260 | 260 | } else { |
261 | 261 | $revert .= $this->message['revdel-restore'].':'; |
262 | 262 | foreach( $Ids as $n => $id ) { |
263 | 263 | $revert .= ' '.$this->skin->makeKnownLinkObj( $revdel, '#'.($n+1), |
264 | | - wfArrayToCGI( array('target' => $title->getPrefixedDBkey(), $paramArray[1] => $id ) ) ); |
| 264 | + wfArrayToCGI( array('target' => $title->getPrefixedDBkey(), $key => $id ) ) ); |
265 | 265 | } |
266 | 266 | } |
267 | 267 | $revert = "($revert)"; |