Make mediawiki.special.pageLanguage work again
[lhc/web/wiklou.git] / includes / api / ApiContinuationManager.php
index dea1cf4..74d0352 100644 (file)
@@ -39,6 +39,7 @@ class ApiContinuationManager {
         * @param ApiBase $module Module starting the continuation
         * @param ApiBase[] $allModules Contains ApiBase instances that will be executed
         * @param array $generatedModules Names of modules that depend on the generator
+        * @throws UsageException
         */
        public function __construct(
                ApiBase $module, array $allModules = array(), array $generatedModules = array()
@@ -231,7 +232,7 @@ class ApiContinuationManager {
                                ApiResult::ADD_ON_TOP | ApiResult::NO_SIZE_CHECK );
                }
                if ( $batchcomplete ) {
-                       $result->addValue( null, 'batchcomplete', '',
+                       $result->addValue( null, 'batchcomplete', true,
                                ApiResult::ADD_ON_TOP | ApiResult::NO_SIZE_CHECK );
                }
        }