From: Brion Vibber Date: Mon, 19 Sep 2011 20:07:40 +0000 (+0000) Subject: Revert r97531 -- hook call added that uses undefined local variables, will spew E_NOT... X-Git-Tag: 1.31.0-rc.0~27550 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=834bcab2a85cb8691d539f4e6dfd0565c407bee2;p=lhc%2Fweb%2Fwiklou.git Revert r97531 -- hook call added that uses undefined local variables, will spew E_NOTICE warnings when run. --- diff --git a/maintenance/deleteBatch.php b/maintenance/deleteBatch.php index 1f945d9c1c..52542ce3ed 100644 --- a/maintenance/deleteBatch.php +++ b/maintenance/deleteBatch.php @@ -88,8 +88,6 @@ 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 );