X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiFormatJson.php;h=2f63faffe837e5210b8ff4c309389a40399b0f90;hb=b0b7727e5e84d4165408b90787b360f1300babd9;hp=e5dafae602087e6c663df09894b869b786ebb611;hpb=2ffff73a46c29cdad1cbf59063f4dd75debd3b4c;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiFormatJson.php b/includes/api/ApiFormatJson.php index e5dafae602..2f63faffe8 100644 --- a/includes/api/ApiFormatJson.php +++ b/includes/api/ApiFormatJson.php @@ -1,9 +1,5 @@ @gmail.com" * * This program is free software; you can redistribute it and/or modify @@ -91,7 +87,7 @@ class ApiFormatJson extends ApiFormatBase { $data = $this->getResult()->getResultData( null, $transform ); $json = FormatJson::encode( $data, $this->getIsHtml(), $opt ); - // T68776: wfMangleFlashPolicy() is needed to avoid a nasty bug in + // T68776: OutputHandler::mangleFlashPolicy() avoids a nasty bug in // Flash, but what it does isn't friendly for the API, so we need to // work around it. if ( preg_match( '/\<\s*cross-domain-policy(?=\s|\>)/i', $json ) ) { @@ -128,8 +124,8 @@ class ApiFormatJson extends ApiFormatBase { ApiBase::PARAM_HELP_MSG => 'apihelp-json-param-ascii', ], 'formatversion' => [ - ApiBase::PARAM_TYPE => [ 1, 2, 'latest' ], - ApiBase::PARAM_DFLT => 1, + ApiBase::PARAM_TYPE => [ '1', '2', 'latest' ], + ApiBase::PARAM_DFLT => '1', ApiBase::PARAM_HELP_MSG => 'apihelp-json-param-formatversion', ], ];