1
0
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:
Tijn Kuyper 2019-05-18 13:32:30 +02:00 committed by GitHub
parent 92b365ffc3
commit ef81305c77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}
?>
?>