API: Add allowsduplicates attribute to action=paraminfo output
authorRoan Kattouw <catrope@users.mediawiki.org>
Sat, 4 Oct 2008 15:03:03 +0000 (15:03 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Sat, 4 Oct 2008 15:03:03 +0000 (15:03 +0000)
RELEASE-NOTES
includes/api/ApiParamInfo.php

index 496f6bf..5cf945e 100644 (file)
@@ -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 ===
 
index 8560753..75c2c2d 100644 (file)
@@ -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];