From 4c36759b694af48d287b04c999d8ea0ed93ceeab Mon Sep 17 00:00:00 2001 From: Andrew Garrett Date: Fri, 18 Sep 2009 14:30:05 +0000 Subject: [PATCH] Force changedfilter parameter to integer on Special:AbuseFilter. Resolves bug 20496 --- includes/api/ApiFormatBase.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/api/ApiFormatBase.php b/includes/api/ApiFormatBase.php index 0294fcea68..166c98fafd 100644 --- a/includes/api/ApiFormatBase.php +++ b/includes/api/ApiFormatBase.php @@ -334,6 +334,8 @@ class ApiFormatFeedWrapper extends ApiFormatBase { foreach ($items as & $item) $feed->outItem($item); $feed->outFooter(); + } elseif ( isset($data['error']) ) { + die( var_dump( $data['error'] ) ); } else { // Error has occured, print something useful ApiBase::dieDebug( __METHOD__, 'Invalid feed class/item' ); @@ -343,4 +345,4 @@ class ApiFormatFeedWrapper extends ApiFormatBase { public function getVersion() { return __CLASS__ . ': $Id$'; } -} \ No newline at end of file +} -- 2.20.1