add MAIN_LANGUAGES_ALLOWED constant

This commit is contained in:
altairis
2019-10-03 15:48:24 +02:00
parent 5bf9b5116f
commit 153121b95d

View File

@@ -781,6 +781,8 @@ class Translate
if (preg_match('/^[a-z]+_[A-Z]+/i', $dir))
{
$this->load("languages");
if (! empty($conf->global->MAIN_LANGUAGES_ALLOWED) && ! in_array($dir, explode(',' , $conf->global->MAIN_LANGUAGES_ALLOWED)) ) continue;
if ($usecode == 2)
{