From: Andrew Garrett Date: Fri, 18 Sep 2009 14:30:05 +0000 (+0000) Subject: Force changedfilter parameter to integer on Special:AbuseFilter. X-Git-Tag: 1.31.0-rc.0~39645 X-Git-Url: http://git.cyclocoop.org/%22.%20generer_url_ecrire%28%22sites_tous%22%2C%22%22%29.%20%22?a=commitdiff_plain;h=4c36759b694af48d287b04c999d8ea0ed93ceeab;p=lhc%2Fweb%2Fwiklou.git Force changedfilter parameter to integer on Special:AbuseFilter. Resolves bug 20496 --- 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 +}