bug constructeur de css

This commit is contained in:
fredtempez 2022-02-09 12:48:32 +01:00
parent 34454b7238
commit a26f07de0c
1 changed files with 2 additions and 2 deletions

View File

@ -2305,7 +2305,7 @@ class core extends common {
file_exists(self::DATA_DIR . 'fonts/' . $fontName) ) {
// La police locale est-elle invoquée ?
$d = array_search($fontId, $cdnFonts);
if ( $d !== NULL ) {
if ( $d !== false ) {
// Chargement de la police demandée dans le thème
$formatFont = explode('.', self::DATA_DIR . 'fonts/' . $fontName);
$css .= '@font-face {font-family:"' . self::$fonts[$fontId] . '";';
@ -2533,7 +2533,7 @@ class core extends common {
file_exists(self::DATA_DIR . 'fonts/' . $fontName) ) {
// La police locale est-elle invoquée ?
$d = array_search($fontId, $cdnFonts);
if ( $d !== NULL ) {
if ( $d !== false ) {
// Chargement de la police demandée dans le thème
$formatFont = explode('.', self::DATA_DIR . 'fonts/' . $fontName);
$css .= '@font-face {font-family:"' . self::$fonts[$fontId] . '";';