diff --git a/CHANGES.md b/CHANGES.md index 9b453a88..a3c6d9cc 100755 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,9 @@ # Changelog +## Version 11.5.02 +### Correction : +- Bug de la génération des feuilles de style des fontes. + ## Version 11.5.01 ### Modifications : - Restauration du bouton d'installation d'une archive de module depuis le store. diff --git a/README.md b/README.md index 7661c9b1..9df1bd54 100755 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# ZwiiCMS 11.5.01 +# ZwiiCMS 11.5.02 Zwii est un CMS sans base de données (flat-file) qui permet de créer et gérer facilement un site web sans aucune connaissance en programmation. diff --git a/core/core.php b/core/core.php index c7f40e87..ed4a98dc 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.01'; + const ZWII_VERSION = '11.5.02'; const ZWII_UPDATE_CHANNEL = "v11"; public static $actions = []; diff --git a/core/module/theme/theme.php b/core/module/theme/theme.php index dc6f16a7..f19278ac 100644 --- a/core/module/theme/theme.php +++ b/core/module/theme/theme.php @@ -1190,8 +1190,8 @@ class theme extends common { */ $gf = false; $fileContent = ''; - if ( is_array($this->getData(['fonts', 'imported'])) && - !empty($this->getData(['fonts', 'imported'])) ) { + //if ( is_array($this->getData(['fonts', 'imported'])) && + // !empty($this->getData(['fonts', 'imported'])) ) { foreach ($this->getData(['fonts', 'imported']) as $fontId => $fontValue) { if ( ( $scope === 'user' && in_array($fontId, $fontsInstalled) ) @@ -1199,13 +1199,13 @@ 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; } } - } - + //} + // Ajoute le préconnect des fontes Googles. $fileContent = $gf ? '' . $fileContent : $fileContent; @@ -1217,8 +1217,8 @@ class theme extends common { */ $fileContentCss = ''; $fileContent = ''; - if ( is_array($this->getData(['fonts', 'files'])) && - !empty($this->getData(['fonts', 'files'])) ) { + //if ( is_array($this->getData(['fonts', 'files'])) && + // !empty($this->getData(['fonts', 'files'])) ) { foreach ($this->getData(['fonts', 'files']) as $fontId => $fontValue) { if ( ( $scope === 'user' && in_array($fontId, $fontsInstalled) ) @@ -1237,7 +1237,7 @@ class theme extends common { } } } - } + //} // Enregistre la personnalisation file_put_contents(self::DATA_DIR.'fonts/fonts.html', $fileContent);