From 9c2cea92b76cd700a32020872ce8eaa141718149 Mon Sep 17 00:00:00 2001 From: fredtempez Date: Sat, 18 Feb 2023 08:57:08 +0100 Subject: [PATCH] Bugs de slash --- core/include/update.inc.php | 8 ++++---- core/module/install/install.php | 2 +- core/module/translate/translate.php | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/core/include/update.inc.php b/core/include/update.inc.php index cd5fd428..df06610d 100644 --- a/core/include/update.inc.php +++ b/core/include/update.inc.php @@ -891,8 +891,8 @@ if ($this->getData(['core', 'dataVersion']) < 12000) { helper::deleteCookie('ZWII_CONTENTSCRIPT'); // Nettoyage de fichiers inutiles - if (file_exists('core\module\user\view\import\import.help.html')) { - unlink('core\module\user\view\import\import.help.html'); + if (file_exists('core/module/user/view/import/import.help.html')) { + unlink('core/module/user/view/import/import.help.html'); } // Supprimer les fichier associés @@ -932,8 +932,8 @@ if ($this->getData(['core', 'dataVersion']) < 12300) { // Valeur par défaut du délai de recherche de mise à jour en ligne $this->setData(['config', 'autoUpdateDelay', 86400]); // Changement de nom des fichiers de langue greque - if (file_exists('core\module\install\ressource\i18n\gr_GR.json')) { - unlink('core\module\install\ressource\i18n\gr_GR.json'); + if (file_exists('core/module/install/ressource/i18n/gr_GR.json')) { + unlink('core/module/install/ressource/i18n/gr_GR.json'); } if (file_exists(self::I18N_DIR . 'gr_GR.json')) { rename(self::I18N_DIR . 'gr_GR.json', self::I18N_DIR . 'el_GR.json'); diff --git a/core/module/install/install.php b/core/module/install/install.php index 89063819..99499e76 100644 --- a/core/module/install/install.php +++ b/core/module/install/install.php @@ -382,7 +382,7 @@ class install extends common $installedUI = $this->getData(['languages']); // Langues disponibles avec la mise à jour - $store = json_decode(file_get_contents('core\module\install\ressource\i18n\languages.json'), true); + $store = json_decode(file_get_contents('core/module/install/ressource/i18n/languages.json'), true); $store = $store['languages']; foreach ($installedUI as $key => $value) { diff --git a/core/module/translate/translate.php b/core/module/translate/translate.php index ff2ec779..81ad96ca 100644 --- a/core/module/translate/translate.php +++ b/core/module/translate/translate.php @@ -176,7 +176,7 @@ class translate extends common $installedUI = $this->getData(['languages']); // Langues disponibles avec la mise à jour - $store = json_decode(file_get_contents('core\module\install\ressource\i18n\languages.json'), true); + $store = json_decode(file_get_contents('core/module/install/ressource/i18n/languages.json'), true); $store = $store['languages']; if ($installedUI) { foreach($installedUI as $key => $value) { @@ -202,7 +202,7 @@ class translate extends common } self::$languagesInstalled[] = [ template::flag($key, '20 %') . ' ' . $value . ' (' . $key . ')', - $messageLocale, + $messageLocale, template::button('translateContentLanguageLocaleEdit' . $key, [ 'class' => file_exists(self::DATA_DIR . $key . '/locale.json') ? '' : ' disabled', 'href' => helper::baseUrl() . $this->getUrl(0) . '/locale/' . $key,