From 67581f74e80dd93b8315232ff59ffc1f4a4956af Mon Sep 17 00:00:00 2001 From: alistair3149 Date: Tue, 13 Aug 2019 20:16:30 -0400 Subject: [PATCH] Theme meta hotfix --- includes/SkinCitizen.php | 2 +- includes/api/ApiWebappManifest.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/SkinCitizen.php b/includes/SkinCitizen.php index 42fa784f..f16709ad 100644 --- a/includes/SkinCitizen.php +++ b/includes/SkinCitizen.php @@ -24,7 +24,7 @@ class SkinCitizen extends SkinTemplate { 'IE=edge' ); // Theme color - $out->addMeta( 'theme_color', + $out->addMeta( 'theme-color', $this->getConfig()->get( 'MFManifestThemeColor' ) ); // Generate manifest diff --git a/includes/api/ApiWebappManifest.php b/includes/api/ApiWebappManifest.php index 543950d4..11a91461 100644 --- a/includes/api/ApiWebappManifest.php +++ b/includes/api/ApiWebappManifest.php @@ -13,6 +13,7 @@ class ApiWebappManifest extends ApiBase { $config = $this->getConfig(); $resultObj = $this->getResult(); $resultObj->addValue( null, 'name', $config->get( 'Sitename' ) ); + $resultObj->addValue( null, 'short_name', $config->get( 'Sitename' ) ); // Might as well add shortname $resultObj->addValue( null, 'orientation', 'portrait' ); $resultObj->addValue( null, 'dir', $config->get( 'ContLang' )->getDir() ); $resultObj->addValue( null, 'lang', $config->get( 'LanguageCode' ) );