diff --git a/core/core.php b/core/core.php index b04fc6ce..ae72e2c5 100644 --- a/core/core.php +++ b/core/core.php @@ -1112,7 +1112,7 @@ class common { while( $success AND $file = readdir($dir) ) { - if (( $file != '.' ) && ( $file != '..' )) { + if (( $file != '.' ) && ( $file != '..' )) { if ( is_dir($src . '/' . $file) ){ // Appel récursif des sous-dossiers $s = $this->copyDir($src . '/' . $file, $dst . '/' . $file); @@ -2118,7 +2118,7 @@ class common { public function showi18n() { foreach (self::$i18nList as $key => $value) { - if ($this->getData(['config', 'i18n', $key]) === 'site' ) + if ($this->getData(['config', 'i18n', $key]) === 'site' ) { if ( (isset($_COOKIE['ZWII_I18N_SITE'] ) diff --git a/core/include/update.inc.php b/core/include/update.inc.php index f3ba5c53..6488bb93 100644 --- a/core/include/update.inc.php +++ b/core/include/update.inc.php @@ -870,7 +870,9 @@ if ($this->getData(['core', 'dataVersion']) < 11600) { $this->deleteData(['config','i18n', 'scriptGoogle']); $this->deleteData(['config','i18n', 'showCredits']); $this->deleteData(['config','i18n', 'autoDetect']); - $this->removeDir('core/vendor/i18n/css'); + if (is_dir('core/vendor/i18n/css')) { + $this->removeDir('core/vendor/i18n/css'); + } // Nettoyage if (file_exists('core/module/translate/ressource/googtrans.png')){ unlink('core/module/translate/ressource/googtrans.png'); @@ -878,8 +880,9 @@ if ($this->getData(['core', 'dataVersion']) < 11600) { if (file_exists('core/vendor/i18n/inc.json')){ unlink('core/vendor/i18n/inc.json'); } - if (file_exits('core/vendor/i18n/translate.js')){ - unlink('core/vendor/i18n/translate.js');} + if (file_exists('core/vendor/i18n/translate.js')){ + unlink('core/vendor/i18n/translate.js'); + } if (file_exists('core/vendor/i18n/translation.js')){ unlink('core/vendor/i18n/translation.js'); } diff --git a/core/module/translate/ressource/googtrans.png b/core/module/translate/ressource/googtrans.png deleted file mode 100755 index 6a839143..00000000 Binary files a/core/module/translate/ressource/googtrans.png and /dev/null differ