Index: trunk/extensions/Nuke/Nuke_body.php |
— | — | @@ -159,7 +159,7 @@ |
160 | 160 | |
161 | 161 | foreach( $pages as $info ) { |
162 | 162 | /** |
163 | | - * @var $title title |
| 163 | + * @var $title Title |
164 | 164 | */ |
165 | 165 | list( $title, $edits, $userName ) = $info; |
166 | 166 | |
— | — | @@ -203,6 +203,7 @@ |
204 | 204 | 'rc_namespace', |
205 | 205 | 'rc_title', |
206 | 206 | 'rc_timestamp', |
| 207 | + 'COUNT(*) AS edits' |
207 | 208 | ); |
208 | 209 | |
209 | 210 | $where = array( "(rc_new = 1) OR (rc_log_type = 'upload' AND rc_log_action = 'upload')" ); |
— | — | @@ -232,24 +233,9 @@ |
233 | 234 | $pages = array(); |
234 | 235 | |
235 | 236 | foreach ( $result as $row ) { |
236 | | - // Note: 'COUNT(*) AS edits' here does not work. For some unknown reason, |
237 | | - // there sometimes are duplicate entries in recentchanges (possibly caused by importing stuff). |
238 | | - $resultEdits = $dbr->select( |
239 | | - 'recentchanges', |
240 | | - array( |
241 | | - 'rc_timestamp', |
242 | | - ), |
243 | | - array( |
244 | | - 'rc_title' => $row->rc_title, |
245 | | - 'rc_namespace' => $row->rc_namespace, |
246 | | - ), |
247 | | - __METHOD__, |
248 | | - array( 'DISTINCT' ) |
249 | | - ); |
250 | | - |
251 | 237 | $pages[] = array( |
252 | 238 | Title::makeTitle( $row->rc_namespace, $row->rc_title ), |
253 | | - $resultEdits->numRows(), |
| 239 | + $row->edits, |
254 | 240 | $username == '' ? $row->rc_user_text : false |
255 | 241 | ); |
256 | 242 | } |
Index: trunk/extensions/Nuke/Nuke.php |
— | — | @@ -4,7 +4,7 @@ |
5 | 5 | die( 'Not an entry point.' ); |
6 | 6 | } |
7 | 7 | |
8 | | -define( 'Nuke_VERSION', '1.1.4' ); |
| 8 | +define( 'Nuke_VERSION', '1.1.3' ); |
9 | 9 | |
10 | 10 | $dir = dirname(__FILE__) . '/'; |
11 | 11 | |