Bug réinitialisation nouveau initData

This commit is contained in:
Fred Tempez 2022-09-26 16:06:32 +02:00
parent 45376ce0d7
commit 848a2cf222

View File

@ -794,11 +794,11 @@ class theme extends common {
$redirect =''; $redirect ='';
switch ($url[0]) { switch ($url[0]) {
case 'admin': case 'admin':
$this->initData('admin'); $this->initData('admin', self::$i18nUI);
$redirect = helper::baseUrl() . 'theme/admin'; $redirect = helper::baseUrl() . 'theme/admin';
break; break;
case 'manage': case 'manage':
$this->initData('theme'); $this->initData('theme', self::$i18nUI);
$redirect = helper::baseUrl() . 'theme/manage'; $redirect = helper::baseUrl() . 'theme/manage';
break; break;
case 'custom': case 'custom':
@ -1212,7 +1212,7 @@ class theme extends common {
} }
} }
} }
// Ajoute le préconnect des fontes Googles. // Ajoute le préconnect des fontes Googles.
$fileContent = $gf ? '<link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>' . $fileContent $fileContent = $gf ? '<link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>' . $fileContent
: $fileContent; : $fileContent;