API: (bug 16516) Made rvsection=T-2 work rather than being interpreted as rvsection=0
authorRoan Kattouw <catrope@users.mediawiki.org>
Wed, 3 Dec 2008 19:01:30 +0000 (19:01 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Wed, 3 Dec 2008 19:01:30 +0000 (19:01 +0000)
RELEASE-NOTES
includes/api/ApiQueryRevisions.php

index fb12add..b1967b6 100644 (file)
@@ -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 ===
 
index 2689d71..91f3e4b 100644 (file)
@@ -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