From 0828169b6b3e8140cbcd0a014cbd581eefe45f53 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Sat, 4 Oct 2008 15:03:03 +0000 Subject: [PATCH] API: Add allowsduplicates attribute to action=paraminfo output --- RELEASE-NOTES | 1 + includes/api/ApiParamInfo.php | 3 +++ 2 files changed, 4 insertions(+) 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]; -- 2.20.1