X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiFormatJson.php;h=2f63faffe837e5210b8ff4c309389a40399b0f90;hb=e0b5a7ef2180e5ae137b5c9be29fea4a3ef36704;hp=6d8e74309fb51ff96bb3b611e2854ba6e9b2816b;hpb=c9d303d39edcd78827a6ff2336cc84ba043444fa;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiFormatJson.php b/includes/api/ApiFormatJson.php index 6d8e74309f..2f63faffe8 100644 --- a/includes/api/ApiFormatJson.php +++ b/includes/api/ApiFormatJson.php @@ -87,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 ) ) { @@ -124,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', ], ];