* (bug 26075) ApiDelete.php now calls correctly ArticleDelete hook
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Tue, 23 Nov 2010 10:04:38 +0000 (10:04 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Tue, 23 Nov 2010 10:04:38 +0000 (10:04 +0000)
RELEASE-NOTES
includes/api/ApiDelete.php

index c426f78..9385101 100644 (file)
@@ -529,6 +529,7 @@ LocalSettings.php. The specific bugs are listed below in the general notes.
   $wgDisableCounters enabled
 * (bug 25987) prop=info&inprop=watched now also works for missing pages
 * (bug 26006) prop=langlinks now allows obtaining full URL
+* (bug 26075) ApiDelete.php now calls correctly ArticleDelete hook
 
 === Languages updated in 1.17 ===
 
index aefd7b3..b4a6ad0 100644 (file)
@@ -146,7 +146,7 @@ class ApiDelete extends ApiBase {
                }
 
                $error = '';
-               if ( !wfRunHooks( 'ArticleDelete', array( &$article, &$wgUser, &$reason, $error ) ) ) {
+               if ( !wfRunHooks( 'ArticleDelete', array( &$article, &$wgUser, &$reason, &$error ) ) ) {
                        return array( array( 'hookaborted', $error ) );
                }