Merge branch '12305' into 12400

This commit is contained in:
Fred Tempez 2023-03-31 09:13:41 +02:00
commit a87431fc9c
3 changed files with 9 additions and 9 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

@ -178,9 +178,9 @@ 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
@ -276,10 +276,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, [