From: Alexandre Emsenhuber Date: Tue, 23 Nov 2010 10:04:38 +0000 (+0000) Subject: * (bug 26075) ApiDelete.php now calls correctly ArticleDelete hook X-Git-Tag: 1.31.0-rc.0~33769 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=74a12db8f6d1485f4e401b87b589ad127f0e8ed4;p=lhc%2Fweb%2Fwiklou.git * (bug 26075) ApiDelete.php now calls correctly ArticleDelete hook --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index c426f78751..9385101c4b 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 === diff --git a/includes/api/ApiDelete.php b/includes/api/ApiDelete.php index aefd7b36fd..b4a6ad0031 100644 --- a/includes/api/ApiDelete.php +++ b/includes/api/ApiDelete.php @@ -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 ) ); }