Index: trunk/phase3/includes/specials/SpecialRevisiondelete.php |
— | — | @@ -143,8 +143,10 @@ |
144 | 144 | $ids = $this->logids; |
145 | 145 | break; |
146 | 146 | } |
| 147 | + // Revision delete logs |
| 148 | + $conds = array( 'log_action' => 'revision' ); |
147 | 149 | // Just get the whole log if there are a lot if items |
148 | | - if( count($ids) > 20 ) return null; |
| 150 | + if( count($ids) > 20 ) return $conds; |
149 | 151 | // Digit chars only |
150 | 152 | foreach( $ids as $id ) { |
151 | 153 | if( preg_match( '/^\d+$/', $id, $m ) ) { |
— | — | @@ -153,9 +155,9 @@ |
154 | 156 | } |
155 | 157 | // Format is <id1,id2,i3...> |
156 | 158 | if( count($safeIds) ) { |
157 | | - return array("log_params RLIKE '(^|\n|,)(".implode('|',$safeIds).")(,|$)'"); |
| 159 | + $conds[] = "log_params RLIKE '(^|\n|,)(".implode('|',$safeIds).")(,|$)'"; |
158 | 160 | } |
159 | | - return null; |
| 161 | + return $conds; |
160 | 162 | } |
161 | 163 | |
162 | 164 | private function secureOperation() { |