$this->setCacheMode( 'private' );
$response = $this->getRequest()->response();
- $headerStr = 'MediaWiki-API-Error: ' . join( ', ', $errCodes );
+ $headerStr = 'MediaWiki-API-Error: ' . implode( ', ', $errCodes );
$response->header( $headerStr );
// Reset and print just the error message
$this->getRequest()->response()->statusHeader( 304 );
// Avoid outputting the compressed representation of a zero-length body
- MediaWiki\suppressWarnings();
+ Wikimedia\suppressWarnings();
ini_set( 'zlib.output_compression', 0 );
- MediaWiki\restoreWarnings();
+ Wikimedia\restoreWarnings();
wfClearOutputBuffers();
return false;