This commit is contained in:
Fred Tempez 2023-03-31 09:12:19 +02:00
parent 9d1fcbfd20
commit 5cd61d8d1a
4 changed files with 12 additions and 12 deletions

View File

@ -1,4 +1,4 @@
# ZwiiCMS 12.3.04
# ZwiiCMS 12.3.05
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.

View File

@ -1,4 +1,4 @@
# ZwiiCMS 12.3.04
# ZwiiCMS 12.3.05
Zwii is a database-less (flat-file) CMS that allows you to easily create and manage a web site without any programming knowledge.

View File

@ -53,7 +53,7 @@ class common
const ACCESS_TIMER = 1800;
// Numéro de version et branche pour l'auto-update
const ZWII_VERSION = '12.3.04';
const ZWII_VERSION = '12.3.05';
const ZWII_DATAVERSION = 12301;

View File

@ -178,17 +178,17 @@ class translate extends common
// Check si la langue est bien disponible sinon la supprime de la BDD
if ($installedUI) {
foreach ($installedUI as $key => $value)
if (file_exists(self::I18N_DIR . $key . '.json' ) === false ) {
$this->deleteData(['languages', $key]);
}
if (file_exists(self::I18N_DIR . $key . '.json') === false) {
$this->deleteData(['languages', $key]);
}
}
// Langues disponibles avec la mise à jour
$store = json_decode(file_get_contents('core/module/install/ressource/i18n/languages.json'), true);
$store = $store['languages'];
foreach($installedUI as $key => $value) {
if (isset($store[$key]) && $store[$key]['version'] > $value['version']) {
foreach ($installedUI as $key => $value) {
if (isset($store[$key]) && $store[$key]['version'] > $value['version']) {
$this->setData(['languages', $key, $store[$key]]);
}
}
@ -258,10 +258,10 @@ class translate extends common
'',
/*
template::button('translateContentLanguageUIEdit' . $file, [
'href' => helper::baseUrl() . $this->getUrl(0) . '/edit/' . $file,
'value' => template::ico('pencil'),
'help' => 'Éditer',
'disabled' => 'fr_FR' === $file
'href' => helper::baseUrl() . $this->getUrl(0) . '/edit/' . $file,
'value' => template::ico('pencil'),
'help' => 'Éditer',
'disabled' => 'fr_FR' === $file
]),
*/
template::button('translateContentLanguageUIDownload' . $file, [