From: Sean Colombo Date: Mon, 19 Sep 2011 18:36:35 +0000 (+0000) Subject: Merged in a fix from Wikia to make sure to call the ArticleDeleteComplete hook from... X-Git-Tag: 1.31.0-rc.0~27556 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/One?a=commitdiff_plain;h=d7b82f07705881b74efada63b495cd58fcc46d6f;p=lhc%2Fweb%2Fwiklou.git 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: mediawiki.org/wiki/Wikia_code --- 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 );