mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 20:58:30 +01:00
#3124 - Possible fix for TinyMCE not loading default (English) LAN
This commit is contained in:
parent
92b365ffc3
commit
ef81305c77
@ -310,14 +310,14 @@ class wysiwyg
|
||||
|
||||
if(!isset($tinylang[$lang]))
|
||||
{
|
||||
$tinylang[$lang] = "en";
|
||||
$tinylang[$lang] = "en_GB";
|
||||
}
|
||||
|
||||
// If language file is not present, use default.
|
||||
$jsFile = e_PLUGIN . 'tinymce4/langs/' . $tinylang[$lang] . '.js';
|
||||
if($tinylang[$lang] != 'en' && !file_exists($jsFile))
|
||||
if($tinylang[$lang] != 'en_GB' && !file_exists($jsFile))
|
||||
{
|
||||
$tinylang[$lang] = "en";
|
||||
$tinylang[$lang] = "en_GB";
|
||||
}
|
||||
|
||||
return $tinylang[$lang];
|
||||
@ -1126,4 +1126,4 @@ class wysiwyg
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user