From: Roan Kattouw Date: Sat, 4 Oct 2008 15:03:03 +0000 (+0000) Subject: API: Add allowsduplicates attribute to action=paraminfo output X-Git-Tag: 1.31.0-rc.0~44931 X-Git-Url: http://git.cyclocoop.org/%22.%24image2.%22?a=commitdiff_plain;h=0828169b6b3e8140cbcd0a014cbd581eefe45f53;p=lhc%2Fweb%2Fwiklou.git API: Add allowsduplicates attribute to action=paraminfo output --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 496f6bfe0f..5cf945e970 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -295,6 +295,7 @@ The following extensions are migrated into MediaWiki 1.14: and undeleted since the last edit * (bug 15785) Allow for different expiry times for different protections in action=protect +* Added allowsduplicates attribute to action=paraminfo output === Languages updated in 1.14 === diff --git a/includes/api/ApiParamInfo.php b/includes/api/ApiParamInfo.php index 856075315e..75c2c2d0a4 100644 --- a/includes/api/ApiParamInfo.php +++ b/includes/api/ApiParamInfo.php @@ -117,6 +117,9 @@ class ApiParamInfo extends ApiBase { ApiBase::LIMIT_SML2 : ApiBase::LIMIT_SML1; } + if(isset($p[ApiBase::PARAM_ALLOW_DUPLICATES])) + if($p[ApiBase::PARAM_ALLOW_DUPLICATES]) + $a['allowsduplicates'] = ''; if(isset($p[ApiBase::PARAM_TYPE])) { $a['type'] = $p[ApiBase::PARAM_TYPE];