From 6d29600caf8a72aad48727bbbef82a0d3b21aa8c Mon Sep 17 00:00:00 2001 From: alistair3149 Date: Sat, 15 Feb 2020 19:56:41 -0500 Subject: [PATCH] Attempt to fix resourceloader not loading bug --- includes/SkinCitizen.php | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/includes/SkinCitizen.php b/includes/SkinCitizen.php index 2d54eb2b..7b55636b 100644 --- a/includes/SkinCitizen.php +++ b/includes/SkinCitizen.php @@ -21,7 +21,7 @@ class SkinCitizen extends SkinTemplate { * @param OutputPage $out */ public function initPage( OutputPage $out ) { - $this->out = $out; + parent::initPage( $out ); // Responsive layout $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' ) ?? '' ); // Preconnect origin - $this->addPreConnect(); + $out->addPreConnect(); // Generate manifest - $this->addManifest(); + $out->addManifest(); // HTTP headers // CSP - $this->addCSP(); + $out->addCSP(); // HSTS - $this->addHSTS(); + $out->addHSTS(); // Deny X-Frame-Options - $this->addXFrameOptions(); + $out->addXFrameOptions(); // X-XSS-Protection - $this->addXXSSProtection(); + $out->addXXSSProtection(); // Referrer policy - $this->addStrictReferrerPolicy(); + $out->addStrictReferrerPolicy(); // Feature policy - $this->addFeaturePolicy(); + $out->addFeaturePolicy(); - $this->addModules(); + $out->addModules(); } /** @@ -233,7 +233,7 @@ class SkinCitizen extends SkinTemplate { 'skins.citizen.styles', 'mediawiki.skinning.content.externallinks', ]; - + return $styles; }