From 683248e3905be9fbc55991712ccbd1089d700f6c Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Sun, 5 Apr 2009 19:42:00 +0000 Subject: [PATCH] * Removed unused par * Style tweaks --- includes/specials/SpecialRevisiondelete.php | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/includes/specials/SpecialRevisiondelete.php b/includes/specials/SpecialRevisiondelete.php index eb8e07a4a5..cf55929d32 100644 --- a/includes/specials/SpecialRevisiondelete.php +++ b/includes/specials/SpecialRevisiondelete.php @@ -1190,10 +1190,9 @@ class RevisionDeleter { } list($log,$logtype) = explode( '/',$title->getDBKey(), 2 ); $result = $this->dbw->select( 'logging', '*', - array( - 'log_type' => $logtype, - 'log_id' => $where ), - __METHOD__ ); + array( 'log_type' => $logtype, 'log_id' => $where ), + __METHOD__ + ); while( $row = $this->dbw->fetchObject( $result ) ) { $logRows[$row->log_id] = $row; } @@ -1203,18 +1202,17 @@ class RevisionDeleter { $success = false; continue; // Must exist } else if( !LogEventsList::userCan($logRows[$logid], LogPage::DELETED_RESTRICTED) - || $logRows[$logid]->log_type == 'suppress' ) { - // Don't hide from oversight log!!! - $userAllowedAll=false; + || $logRows[$logid]->log_type == 'suppress' ) + { + $userAllowedAll=false; // Don't hide from oversight log!!! continue; } // Which logs did we change anything about? if( $logRows[$logid]->log_deleted != $bitfield ) { - $log_Ids[]=$logid; - $count++; - + $log_Ids[] = $logid; $this->updateLogs( $logRows[$logid], $bitfield ); - $this->updateRecentChangesLog( $logRows[$logid], $bitfield, true ); + $this->updateRecentChangesLog( $logRows[$logid], $bitfield ); + $count++; } } // Don't log or touch if nothing changed -- 2.20.1