Index: trunk/extensions/Nuke/Nuke_body.php |
— | — | @@ -161,15 +161,15 @@ |
162 | 162 | /** |
163 | 163 | * @var $title Title |
164 | 164 | */ |
165 | | - list( $title, $edits, $userName ) = $info; |
| 165 | + list( $title, $userName ) = $info; |
166 | 166 | |
167 | 167 | $image = $title->getNamespace() == NS_IMAGE ? wfLocalFile( $title ) : false; |
168 | 168 | $thumb = $image && $image->exists() ? $image->transform( array( 'width' => 120, 'height' => 120 ), 0 ) : false; |
169 | 169 | |
170 | | - $changes = wfMsgExt( 'nchanges', 'parsemag', $this->getLanguage()->formatNum( $edits ) ); |
171 | | - |
172 | 170 | $out->addHTML( '<li>' . |
173 | | - Xml::check( 'pages[]', true, |
| 171 | + Xml::check( |
| 172 | + 'pages[]', |
| 173 | + true, |
174 | 174 | array( 'value' => $title->getPrefixedDbKey() ) |
175 | 175 | ) . |
176 | 176 | ' ' . |
— | — | @@ -177,7 +177,12 @@ |
178 | 178 | Linker::linkKnown( $title ) . |
179 | 179 | ' (' . |
180 | 180 | ( $userName ? wfMsgExt( 'nuke-editby', 'parseinline', $userName ) . ', ' : '' ) . |
181 | | - Linker::linkKnown( $title, $changes, array(), array('action' => 'history' ) ) . |
| 181 | + Linker::linkKnown( |
| 182 | + $title, |
| 183 | + wfMsg( 'nuke-viewchanges' ), |
| 184 | + array(), |
| 185 | + array( 'action' => 'history' ) |
| 186 | + ) . |
182 | 187 | ")</li>\n" ); |
183 | 188 | } |
184 | 189 | |
— | — | @@ -203,7 +208,6 @@ |
204 | 209 | 'rc_namespace', |
205 | 210 | 'rc_title', |
206 | 211 | 'rc_timestamp', |
207 | | - 'COUNT(*) AS edits' |
208 | 212 | ); |
209 | 213 | |
210 | 214 | $where = array( "(rc_new = 1) OR (rc_log_type = 'upload' AND rc_log_action = 'upload')" ); |
— | — | @@ -235,8 +239,7 @@ |
236 | 240 | foreach ( $result as $row ) { |
237 | 241 | $pages[] = array( |
238 | 242 | Title::makeTitle( $row->rc_namespace, $row->rc_title ), |
239 | | - $row->edits, |
240 | | - $username == '' ? $row->rc_user_text : false |
| 243 | + $username === '' ? $row->rc_user_text : false |
241 | 244 | ); |
242 | 245 | } |
243 | 246 | |
— | — | @@ -255,6 +258,7 @@ |
256 | 259 | foreach( $pages as $page ) { |
257 | 260 | $title = Title::newFromURL( $page ); |
258 | 261 | $file = $title->getNamespace() == NS_FILE ? wfLocalFile( $title ) : false; |
| 262 | + |
259 | 263 | if ( $file ) { |
260 | 264 | $oldimage = null; // Must be passed by reference |
261 | 265 | $ok = FileDeleteForm::doDelete( $title, $file, $oldimage, $reason, false )->isOK(); |
— | — | @@ -262,6 +266,7 @@ |
263 | 267 | $article = new Article( $title, 0 ); |
264 | 268 | $ok = $article->doDeleteArticle( $reason ); |
265 | 269 | } |
| 270 | + |
266 | 271 | if ( $ok ) { |
267 | 272 | $res[] = wfMsgExt( 'nuke-deleted', array( 'parseinline' ), $title->getPrefixedText() ); |
268 | 273 | } else { |
Index: trunk/extensions/Nuke/Nuke.i18n.php |
— | — | @@ -37,6 +37,7 @@ |
38 | 38 | 'nuke-delete-more' => '[[Special:Nuke|Delete more pages]]', |
39 | 39 | 'nuke-pattern' => 'Pattern for the page name:', |
40 | 40 | 'nuke-nopages-global'=> 'There are no new pages in [[Special:RecentChanges|recent changes]].', |
| 41 | + 'nuke-viewchanges' => 'view changes', |
41 | 42 | ); |
42 | 43 | |
43 | 44 | /** Message documentation (Message documentation) |
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.3' ); |
| 8 | +define( 'Nuke_VERSION', '1.1.4' ); |
9 | 9 | |
10 | 10 | $dir = dirname(__FILE__) . '/'; |
11 | 11 | |