Index: trunk/phase3/includes/specials/SpecialRevisiondelete.php |
— | — | @@ -1190,10 +1190,9 @@ |
1191 | 1191 | } |
1192 | 1192 | list($log,$logtype) = explode( '/',$title->getDBKey(), 2 ); |
1193 | 1193 | $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 | + ); |
1198 | 1197 | while( $row = $this->dbw->fetchObject( $result ) ) { |
1199 | 1198 | $logRows[$row->log_id] = $row; |
1200 | 1199 | } |
— | — | @@ -1203,18 +1202,17 @@ |
1204 | 1203 | $success = false; |
1205 | 1204 | continue; // Must exist |
1206 | 1205 | } 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!!! |
1210 | 1209 | continue; |
1211 | 1210 | } |
1212 | 1211 | // Which logs did we change anything about? |
1213 | 1212 | if( $logRows[$logid]->log_deleted != $bitfield ) { |
1214 | | - $log_Ids[]=$logid; |
1215 | | - $count++; |
1216 | | - |
| 1213 | + $log_Ids[] = $logid; |
1217 | 1214 | $this->updateLogs( $logRows[$logid], $bitfield ); |
1218 | | - $this->updateRecentChangesLog( $logRows[$logid], $bitfield, true ); |
| 1215 | + $this->updateRecentChangesLog( $logRows[$logid], $bitfield ); |
| 1216 | + $count++; |
1219 | 1217 | } |
1220 | 1218 | } |
1221 | 1219 | // Don't log or touch if nothing changed |