add MAIN_LANGUAGES_ALLOWED constant
This commit is contained in:
parent
5bf9b5116f
commit
153121b95d
@ -782,6 +782,8 @@ class Translate
|
|||||||
{
|
{
|
||||||
$this->load("languages");
|
$this->load("languages");
|
||||||
|
|
||||||
|
if (! empty($conf->global->MAIN_LANGUAGES_ALLOWED) && ! in_array($dir, explode(',' , $conf->global->MAIN_LANGUAGES_ALLOWED)) ) continue;
|
||||||
|
|
||||||
if ($usecode == 2)
|
if ($usecode == 2)
|
||||||
{
|
{
|
||||||
$langs_available[$dir] = $dir;
|
$langs_available[$dir] = $dir;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user