bug effacement langue installée

This commit is contained in:
fredtempez 2020-11-26 08:59:04 +01:00
parent 793860f7d1
commit 49e8603ff9

View File

@ -37,7 +37,7 @@ class translate extends common {
foreach (self::$i18nList as $keyi18n => $value) {
if ($keyi18n === 'fr') {continue;}
// Effacement d'une langue installée
if ( is_dir( self::DATA_DIR . $keyi18n ) === true
if ( is_dir( self::DATA_DIR . $keyi18n ) === false
AND $this->getInput('translate' . strtoupper($keyi18n)) === 'none')
{
$this->removeDir( self::DATA_DIR . $keyi18n);