http://www.mediawiki.org/wiki/Special:Code/MediaWiki/97531

Revision: 97531
Author:   sean_colombo
Date:     2011-09-19 18:36:35 +0000 (Mon, 19 Sep 2011)
Log Message:
-----------
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

Modified Paths:
--------------
    trunk/phase3/maintenance/deleteBatch.php

Modified: trunk/phase3/maintenance/deleteBatch.php
===================================================================
--- trunk/phase3/maintenance/deleteBatch.php    2011-09-19 18:35:13 UTC (rev 
97530)
+++ trunk/phase3/maintenance/deleteBatch.php    2011-09-19 18:36:35 UTC (rev 
97531)
@@ -88,6 +88,8 @@
                                $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 );


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to