r49223 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r49222‎ | r49223 | r49224 >
Date:19:42, 5 April 2009
Author:aaron
Status:ok
Tags:
Comment:
* Removed unused par
* Style tweaks
Modified paths:
  • /trunk/phase3/includes/specials/SpecialRevisiondelete.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialRevisiondelete.php
@@ -1190,10 +1190,9 @@
11911191 }
11921192 list($log,$logtype) = explode( '/',$title->getDBKey(), 2 );
11931193 $result = $this->dbw->select( 'logging', '*',
1194 - array(
1195 - 'log_type' => $logtype,
1196 - 'log_id' => $where ),
1197 - __METHOD__ );
 1194+ array( 'log_type' => $logtype, 'log_id' => $where ),
 1195+ __METHOD__
 1196+ );
11981197 while( $row = $this->dbw->fetchObject( $result ) ) {
11991198 $logRows[$row->log_id] = $row;
12001199 }
@@ -1203,18 +1202,17 @@
12041203 $success = false;
12051204 continue; // Must exist
12061205 } else if( !LogEventsList::userCan($logRows[$logid], LogPage::DELETED_RESTRICTED)
1207 - || $logRows[$logid]->log_type == 'suppress' ) {
1208 - // Don't hide from oversight log!!!
1209 - $userAllowedAll=false;
 1206+ || $logRows[$logid]->log_type == 'suppress' )
 1207+ {
 1208+ $userAllowedAll=false; // Don't hide from oversight log!!!
12101209 continue;
12111210 }
12121211 // Which logs did we change anything about?
12131212 if( $logRows[$logid]->log_deleted != $bitfield ) {
1214 - $log_Ids[]=$logid;
1215 - $count++;
1216 -
 1213+ $log_Ids[] = $logid;
12171214 $this->updateLogs( $logRows[$logid], $bitfield );
1218 - $this->updateRecentChangesLog( $logRows[$logid], $bitfield, true );
 1215+ $this->updateRecentChangesLog( $logRows[$logid], $bitfield );
 1216+ $count++;
12191217 }
12201218 }
12211219 // Don't log or touch if nothing changed

Status & tagging log