From 74a12db8f6d1485f4e401b87b589ad127f0e8ed4 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Tue, 23 Nov 2010 10:04:38 +0000 Subject: [PATCH] * (bug 26075) ApiDelete.php now calls correctly ArticleDelete hook --- RELEASE-NOTES | 1 + includes/api/ApiDelete.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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 ) ); } -- 2.20.1