dev003 bugs

This commit is contained in:
Fred Tempez 2022-08-24 20:11:07 +02:00
parent c12978f93a
commit 06b32aa54e
3 changed files with 8 additions and 5 deletions

View File

@ -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'] )

View File

@ -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');
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB