From f9c5d0d9bd18e977b6bdbb3096779cdaa99312bf Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Thu, 24 Mar 2011 20:05:45 +0000 Subject: [PATCH] * (bug 28226) prop=extlinks&eloffset should be an integer --- RELEASE-NOTES | 3 ++- includes/api/ApiQueryExternalLinks.php | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) 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 => '', -- 2.20.1