Attempt to fix resourceloader not loading bug

This commit is contained in:
alistair3149 2020-02-15 19:56:41 -05:00
parent 24724cf9b2
commit 6d29600caf
No known key found for this signature in database
GPG key ID: 94D081060FD3DD9C

View file

@ -21,7 +21,7 @@ class SkinCitizen extends SkinTemplate {
* @param OutputPage $out * @param OutputPage $out
*/ */
public function initPage( OutputPage $out ) { public function initPage( OutputPage $out ) {
$this->out = $out; parent::initPage( $out );
// Responsive layout // Responsive layout
$out->addMeta( 'viewport', 'width=device-width, initial-scale=1.0' ); $out->addMeta( 'viewport', 'width=device-width, initial-scale=1.0' );
@ -29,31 +29,31 @@ class SkinCitizen extends SkinTemplate {
$out->addMeta( 'theme-color', $this->getConfigValue( 'CitizenThemeColor' ) ?? '' ); $out->addMeta( 'theme-color', $this->getConfigValue( 'CitizenThemeColor' ) ?? '' );
// Preconnect origin // Preconnect origin
$this->addPreConnect(); $out->addPreConnect();
// Generate manifest // Generate manifest
$this->addManifest(); $out->addManifest();
// HTTP headers // HTTP headers
// CSP // CSP
$this->addCSP(); $out->addCSP();
// HSTS // HSTS
$this->addHSTS(); $out->addHSTS();
// Deny X-Frame-Options // Deny X-Frame-Options
$this->addXFrameOptions(); $out->addXFrameOptions();
// X-XSS-Protection // X-XSS-Protection
$this->addXXSSProtection(); $out->addXXSSProtection();
// Referrer policy // Referrer policy
$this->addStrictReferrerPolicy(); $out->addStrictReferrerPolicy();
// Feature policy // Feature policy
$this->addFeaturePolicy(); $out->addFeaturePolicy();
$this->addModules(); $out->addModules();
} }
/** /**
@ -233,7 +233,7 @@ class SkinCitizen extends SkinTemplate {
'skins.citizen.styles', 'skins.citizen.styles',
'mediawiki.skinning.content.externallinks', 'mediawiki.skinning.content.externallinks',
]; ];
return $styles; return $styles;
} }