Skip to content

Commit

Permalink
#3124 - Possible fix for TinyMCE not loading default (English) LAN
Browse files Browse the repository at this point in the history
  • Loading branch information
Moc authored May 18, 2019
1 parent 92b365f commit ef81305
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions e107_plugins/tinymce4/wysiwyg.php
Original file line number Diff line number Diff line change
Expand Up @@ -310,14 +310,14 @@ function tinymce_lang()

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];
Expand Down Expand Up @@ -1126,4 +1126,4 @@ function filter_plugins($plugs)

}

?>
?>

0 comments on commit ef81305

Please sign in to comment.