[svn r18394] FS#2867 - FCKEditor: Language detection - more corrections.

skala
Ivan Tcholakov 17 years ago
parent 67e43404bc
commit a770669c30
  1. 4
      main/inc/lib/fckeditor/fckeditor.php

@ -170,6 +170,10 @@ class FCKeditor
$this->BasePath = api_get_path(REL_PATH).'main/inc/lib/fckeditor/';
@ $editor_lang = Database :: get_language_isocode($language_interface);
// Making a compatible code in order it to be accepted by the editor.
$editor_lang = strtolower(str_replace('_', '-', $editor_lang));
$language_file = api_get_path(SYS_PATH).'main/inc/lib/fckeditor/editor/lang/'.$editor_lang.'.js';
if (empty ($editor_lang) || !file_exists($language_file))
{

Loading…
Cancel
Save