From 136dfad9820b560a0bdd0e8db3c90680eb2e2c8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Tempez?= Date: Wed, 1 Jun 2022 12:38:37 +0200 Subject: [PATCH] 11503 Pb de fontes par cdn --- core/core.php | 2 +- core/module/theme/theme.php | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/core/core.php b/core/core.php index ed4a98dc..09ae33ee 100644 --- a/core/core.php +++ b/core/core.php @@ -45,7 +45,7 @@ class common { // Numéro de version const ZWII_UPDATE_URL = 'https://forge.chapril.org/ZwiiCMS-Team/update/raw/branch/master/'; - const ZWII_VERSION = '11.5.02'; + const ZWII_VERSION = '11.5.03'; const ZWII_UPDATE_CHANNEL = "v11"; public static $actions = []; diff --git a/core/module/theme/theme.php b/core/module/theme/theme.php index f19278ac..708947d2 100644 --- a/core/module/theme/theme.php +++ b/core/module/theme/theme.php @@ -1199,7 +1199,7 @@ class theme extends common { ) { //Pré chargement à revoir //$fileContent .= ''; - $fileContent = ''; + $fileContent .= ''; // Pré connect pour api.google $gf = strpos($fontValue['resource'], 'fonts.googleapis.com') === false ? $gf || false : $gf || true; } @@ -1216,7 +1216,6 @@ class theme extends common { * Fontes installées localement */ $fileContentCss = ''; - $fileContent = ''; //if ( is_array($this->getData(['fonts', 'files'])) && // !empty($this->getData(['fonts', 'files'])) ) { foreach ($this->getData(['fonts', 'files']) as $fontId => $fontValue) {