// Flash, but what it does isn't friendly for the API. There's nothing
// we can do here that isn't actively broken in some manner, so let's
// just be broken in a useful manner.
if ( $this->getConfig()->get( 'MangleFlashPolicy' ) &&
// Flash, but what it does isn't friendly for the API. There's nothing
// we can do here that isn't actively broken in some manner, so let's
// just be broken in a useful manner.
if ( $this->getConfig()->get( 'MangleFlashPolicy' ) &&
preg_match( '/\<\s*cross-domain-policy(?=\s|\>)/i', $text )
) {
$this->dieWithError( 'apierror-formatphp', 'internalerror' );
preg_match( '/\<\s*cross-domain-policy(?=\s|\>)/i', $text )
) {
$this->dieWithError( 'apierror-formatphp', 'internalerror' );
- ApiBase::PARAM_TYPE => [ 1, 2, 'latest' ],
- ApiBase::PARAM_DFLT => 1,
+ ApiBase::PARAM_TYPE => [ '1', '2', 'latest' ],
+ ApiBase::PARAM_DFLT => '1',