From d522ff92636ac8e09ccfc1046647e7ddce72d0a9 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Wed, 3 Dec 2008 19:01:30 +0000 Subject: [PATCH] API: (bug 16516) Made rvsection=T-2 work rather than being interpreted as rvsection=0 --- RELEASE-NOTES | 1 + includes/api/ApiQueryRevisions.php | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index fb12add345..b1967b637d 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -482,6 +482,7 @@ The following extensions are migrated into MediaWiki 1.14: * (bug 16408) Added rvgeneratexml to prop=revisions * (bug 16421) Made list=logevents's leuser accept user names with underscores instead of spaces +* (bug 16516) Made rvsection=T-2 work === Languages updated in 1.14 === diff --git a/includes/api/ApiQueryRevisions.php b/includes/api/ApiQueryRevisions.php index 2689d7160b..91f3e4b16f 100644 --- a/includes/api/ApiQueryRevisions.php +++ b/includes/api/ApiQueryRevisions.php @@ -387,9 +387,7 @@ class ApiQueryRevisions extends ApiQueryBase { ), 'expandtemplates' => false, 'generatexml' => false, - 'section' => array( - ApiBase :: PARAM_TYPE => 'integer' - ), + 'section' => null, 'token' => array( ApiBase :: PARAM_TYPE => array_keys($this->getTokenFunctions()), ApiBase :: PARAM_ISMULTI => true -- 2.20.1