bug effacement langue installée
This commit is contained in:
parent
793860f7d1
commit
49e8603ff9
@ -19,7 +19,7 @@ class translate extends common {
|
|||||||
'index' => self::GROUP_MODERATOR,
|
'index' => self::GROUP_MODERATOR,
|
||||||
'language' => self::GROUP_VISITOR
|
'language' => self::GROUP_VISITOR
|
||||||
];
|
];
|
||||||
|
|
||||||
public static $typeTranslate = [
|
public static $typeTranslate = [
|
||||||
'none' => 'Masqué',
|
'none' => 'Masqué',
|
||||||
'script' => 'Automatique',
|
'script' => 'Automatique',
|
||||||
@ -37,7 +37,7 @@ class translate extends common {
|
|||||||
foreach (self::$i18nList as $keyi18n => $value) {
|
foreach (self::$i18nList as $keyi18n => $value) {
|
||||||
if ($keyi18n === 'fr') {continue;}
|
if ($keyi18n === 'fr') {continue;}
|
||||||
// Effacement d'une langue installée
|
// 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')
|
AND $this->getInput('translate' . strtoupper($keyi18n)) === 'none')
|
||||||
{
|
{
|
||||||
$this->removeDir( self::DATA_DIR . $keyi18n);
|
$this->removeDir( self::DATA_DIR . $keyi18n);
|
||||||
|
Loading…
Reference in New Issue
Block a user