r33519 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r33518‎ | r33519 | r33520 >
Date:21:06, 17 April 2008
Author:aaron
Status:old
Tags:
Comment:
revisiondeletion log clean up
Modified paths:
  • /trunk/phase3/includes/LogEventsList.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/LogEventsList.php
@@ -250,17 +250,17 @@
251251 if( count($paramArray) == 2 ) {
252252 $revdel = SpecialPage::getTitleFor( 'Revisiondelete' );
253253 // Different revision types use different URL params...
254 - $subtype = isset($paramArray[2]) ? $paramArray[1] : '';
 254+ $key = $paramArray[0];
255255 // 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] );
257257 if( count($Ids) == 1 ) {
258258 $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] ) ) );
260260 } else {
261261 $revert .= $this->message['revdel-restore'].':';
262262 foreach( $Ids as $n => $id ) {
263263 $revert .= ' '.$this->skin->makeKnownLinkObj( $revdel, '#'.($n+1),
264 - wfArrayToCGI( array('target' => $title->getPrefixedDBkey(), $paramArray[1] => $id ) ) );
 264+ wfArrayToCGI( array('target' => $title->getPrefixedDBkey(), $key => $id ) ) );
265265 }
266266 }
267267 $revert = "($revert)";

Status & tagging log