$this->getMain()->getRequest()->response()->header( "Content-Type: $mime; charset=utf-8" );
- //Set X-Frame-Options API results (bug 39180)
+ // Set X-Frame-Options API results (bug 39180)
$apiFrameOptions = $this->getConfig()->get( 'ApiFrameOptions' );
if ( $apiFrameOptions ) {
$this->getMain()->getRequest()->response()->header( "X-Frame-Options: $apiFrameOptions" );
// API handles its own clickjacking protection.
// Note, that $wgBreakFrames will still override $wgApiFrameOptions for format mode.
- $out->allowClickJacking();
+ $out->allowClickjacking();
$out->output();
} else {
// For non-HTML output, clear all errors that might have been
return 'https://www.mediawiki.org/wiki/API:Data_formats';
}
- /**
- * To avoid code duplication with the deprecation of dbg, txt
- * and yaml, this method is added to do the necessary work. It should be
- * removed when those deprecated formats are removed.
- */
- protected function markDeprecated() {
- $fm = $this->getIsHtml() ? 'fm' : '';
- $name = $this->getModuleName();
- $this->logFeatureUsage( "format=$name" );
- $this->setWarning( "format=$name has been deprecated. Please use format=json$fm instead." );
- }
-
/************************************************************************//**
* @name Deprecated
* @{