From d7b82f07705881b74efada63b495cd58fcc46d6f Mon Sep 17 00:00:00 2001 From: Sean Colombo Date: Mon, 19 Sep 2011 18:36:35 +0000 Subject: [PATCH] Merged in a fix from Wikia to make sure to call the ArticleDeleteComplete hook from deleteBatch (this is an existing hook that should be called on article deletion). Part of the diffs here: http://www.mediawiki.org/wiki/Wikia_code --- maintenance/deleteBatch.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/maintenance/deleteBatch.php b/maintenance/deleteBatch.php index 52542ce3ed..1f945d9c1c 100644 --- a/maintenance/deleteBatch.php +++ b/maintenance/deleteBatch.php @@ -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 ); -- 2.20.1