From: Sam Reed Date: Thu, 24 Mar 2011 20:05:45 +0000 (+0000) Subject: * (bug 28226) prop=extlinks&eloffset should be an integer X-Git-Tag: 1.31.0-rc.0~31209 X-Git-Url: http://git.cyclocoop.org/%24dirpuce/puce%24spip_lang_rtl.gif?a=commitdiff_plain;h=f9c5d0d9bd18e977b6bdbb3096779cdaa99312bf;p=lhc%2Fweb%2Fwiklou.git * (bug 28226) prop=extlinks&eloffset should be an integer --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 306d7528e1..482654efde 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -282,7 +282,8 @@ PHP if you have not done so prior to upgrading MediaWiki. * (bug 27589) list=allimages&aiprop=archivename is useless * (bug 27586) Remove duplication of props in ApiQueryStashImageInfo by using ApiQueryImageInfo - +* (bug 28226) prop=extlinks&eloffset should be an integer + === Languages updated in 1.18 === MediaWiki supports over 330 languages. Many localisations are updated diff --git a/includes/api/ApiQueryExternalLinks.php b/includes/api/ApiQueryExternalLinks.php index de5bb3ce8b..d726f66980 100644 --- a/includes/api/ApiQueryExternalLinks.php +++ b/includes/api/ApiQueryExternalLinks.php @@ -108,7 +108,9 @@ class ApiQueryExternalLinks extends ApiQueryBase { ApiBase::PARAM_MAX => ApiBase::LIMIT_BIG1, ApiBase::PARAM_MAX2 => ApiBase::LIMIT_BIG2 ), - 'offset' => null, + 'offset' => array( + ApiBase::PARAM_TYPE => 'integer' + ), 'protocol' => array( ApiBase::PARAM_TYPE => ApiQueryExtLinksUsage::prepareProtocols(), ApiBase::PARAM_DFLT => '',