Index: trunk/phase3/includes/specials/SpecialRevisiondelete.php |
— | — | @@ -126,6 +126,7 @@ |
127 | 127 | |
128 | 128 | private function getLogQueryCond() { |
129 | 129 | $ids = $safeIds = array(); |
| 130 | + $action = 'revision'; |
130 | 131 | switch( $this->deleteKey ) { |
131 | 132 | case 'oldid': |
132 | 133 | $ids = $this->oldids; |
— | — | @@ -141,10 +142,11 @@ |
142 | 143 | break; |
143 | 144 | case 'logid': |
144 | 145 | $ids = $this->logids; |
| 146 | + $action = 'event'; |
145 | 147 | break; |
146 | 148 | } |
147 | 149 | // Revision delete logs |
148 | | - $conds = array( 'log_action' => 'revision' ); |
| 150 | + $conds = array( 'log_action' => $action ); |
149 | 151 | // Just get the whole log if there are a lot if items |
150 | 152 | if( count($ids) > 20 ) return $conds; |
151 | 153 | // Digit chars only |