import de fontes DIR_DATA !!!!

This commit is contained in:
Fred Tempez 2022-03-31 15:07:16 +02:00
parent 3f52396e9d
commit c52c6f4438

View File

@ -940,7 +940,7 @@ if ($this->getData(['core', 'dataVersion']) < 11400) {
if (is_array($files)) { if (is_array($files)) {
$this->deleteData(['fonts', 'files']); $this->deleteData(['fonts', 'files']);
foreach ($files as $fontId => $fontName) { foreach ($files as $fontId => $fontName) {
if (file_exists(self::DIR_DATA . 'fonts' . $fontName)) { if (file_exists(self::DATA_DIR . 'fonts' . $fontName)) {
$this->setData(['fonts', 'files', $fontId, [ $this->setData(['fonts', 'files', $fontId, [
'name' => ucfirst($fontId), 'name' => ucfirst($fontId),
'font-family'=> $fontId . ', sans-serif', 'font-family'=> $fontId . ', sans-serif',