mirror of
https://github.com/e107inc/e107.git
synced 2025-08-06 06:38:00 +02:00
Issue #5443 Remove warning about invalid language.
This commit is contained in:
@@ -51,12 +51,14 @@ if(USER && !getperms('0') && vartrue($pref['multilanguage']) && !getperms(e_LANG
|
|||||||
$lng = e107::getLanguage();
|
$lng = e107::getLanguage();
|
||||||
|
|
||||||
$tmp = explode(".",ADMINPERMS);
|
$tmp = explode(".",ADMINPERMS);
|
||||||
|
|
||||||
foreach($tmp as $ln)
|
foreach($tmp as $ln)
|
||||||
{
|
{
|
||||||
if(strlen($ln) < 3) // not a language perm.
|
|
||||||
{
|
if(strlen($ln) < 3 || preg_match('/\d/', $ln)) // Skip if less than 2 chars or contains a number
|
||||||
continue;
|
{
|
||||||
}
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if($lng->isValid($ln))
|
if($lng->isValid($ln))
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user