Merged in a fix from Wikia to make sure to call the ArticleDeleteComplete hook from...
authorSean Colombo <sean_colombo@users.mediawiki.org>
Mon, 19 Sep 2011 18:36:35 +0000 (18:36 +0000)
committerSean Colombo <sean_colombo@users.mediawiki.org>
Mon, 19 Sep 2011 18:36:35 +0000 (18:36 +0000)
maintenance/deleteBatch.php

index 52542ce..1f945d9 100644 (file)
@@ -88,6 +88,8 @@ class DeleteBatch extends Maintenance {
                                $img = wfFindFile( $art->mTitle );
                                if ( !$img || !$img->delete( $reason ) ) {
                                        $this->output( "FAILED to delete image file... " );
+                               } else {
+                                       wfRunHooks('ArticleDeleteComplete', array(&$art, &$wgUser, $reason, $page_id));
                                }
                        } else {
                                $art = new Article( $page );