public function output() {
$this->flush();
- $this->outputFooter();
+
+ if ( !$this->redirectTarget ) {
+ $this->outputFooter();
+ }
}
/**
public function getCSS() {
global $wgStyleDirectory;
- $moduleNames = array(
+ $moduleNames = [
// See SkinTemplate::setupSkinUserCss
'mediawiki.legacy.shared',
// See Vector::setupSkinUserCss
'mediawiki.skinning.interface',
- );
+ ];
$resourceLoader = new ResourceLoader();
// Force loading Vector skin if available as a fallback skin
// for whatever ResourceLoader wants to have as the default.
$registry = new ExtensionRegistry();
- $data = $registry->readFromQueue( array(
+ $data = $registry->readFromQueue( [
"$wgStyleDirectory/Vector/skin.json" => 1,
- ) );
+ ] );
if ( isset( $data['globals']['wgResourceModules'] ) ) {
$resourceLoader->register( $data['globals']['wgResourceModules'] );
}
$moduleNames[] = 'mediawiki.legacy.config';
- $rlContext = new ResourceLoaderContext( $resourceLoader, new FauxRequest( array(
+ $rlContext = new ResourceLoaderContext( $resourceLoader, new FauxRequest( [
'debug' => 'true',
'lang' => $this->getLanguageCode(),
'only' => 'styles',
- ) ) );
+ ] ) );
- $styles = array();
+ $styles = [];
foreach ( $moduleNames as $moduleName ) {
/** @var ResourceLoaderFileModule $module */
$module = $resourceLoader->getModule( $moduleName );
* @return string[]
*/
public function getHeadAttribs() {
- return array(
+ return [
'dir' => $this->getDir(),
'lang' => wfBCP47( $this->getLanguageCode() ),
- );
+ ];
}
/**
}
?>
<?php echo Html::htmlHeader( $this->getHeadAttribs() ); ?>
+
<head>
<meta name="robots" content="noindex, nofollow" />
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<?php echo Html::linkedScript( 'config.js' ) . "\n"; ?>
</head>
-<?php echo Html::openElement( 'body', array( 'class' => $this->getDir() ) ) . "\n"; ?>
+<?php echo Html::openElement( 'body', [ 'class' => $this->getDir() ] ) . "\n"; ?>
<div id="mw-page-base"></div>
<div id="mw-head-base"></div>
<div id="content" class="mw-body">