diff options
author | jenkins-bot <jenkins-bot@gerrit.wikimedia.org> | 2015-04-16 01:05:51 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@wikimedia.org> | 2015-04-16 01:05:51 +0000 |
commit | 4fa02402289e9ba08369f2c3f9cb78eb0080027a (patch) | |
tree | 61726eaa6d3a701f5c85c1114860e8c12afe0528 /includes/api/ApiProtect.php | |
parent | e7d4b84f7bc7533f96cd2c1a6625ff40924b05c9 (diff) | |
parent | 1c57794e371d74e1d88748de567a1c3358c3ad2e (diff) | |
download | mediawikicore-4fa02402289e9ba08369f2c3f9cb78eb0080027a.tar.gz mediawikicore-4fa02402289e9ba08369f2c3f9cb78eb0080027a.zip |
Merge "API: Overhaul ApiResult, make format=xml not throw, and add json formatversion"
Diffstat (limited to 'includes/api/ApiProtect.php')
-rw-r--r-- | includes/api/ApiProtect.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/api/ApiProtect.php b/includes/api/ApiProtect.php index 675aa584429d..496db8fec789 100644 --- a/includes/api/ApiProtect.php +++ b/includes/api/ApiProtect.php @@ -127,7 +127,7 @@ class ApiProtect extends ApiBase { } $res['protections'] = $resultProtections; $result = $this->getResult(); - $result->setIndexedTagName( $res['protections'], 'protection' ); + ApiResult::setIndexedTagName( $res['protections'], 'protection' ); $result->addValue( null, $this->getModuleName(), $res ); } |