|
@@ -1,4 +1,4 @@
|
|
|
-<?php
|
|
|
+<?php
|
|
|
|
|
|
==============================================================================
|
|
|
Dokeos - elearning and course management software
|
|
@@ -581,6 +581,12 @@ foreach($home_menu as $key=>$enreg)
|
|
|
$oFCKeditor->Config['CustomConfigurationsPath'] = api_get_path(REL_PATH)."main/inc/lib/fckeditor/myconfig.js";
|
|
|
$oFCKeditor->ToolbarSet = "Small";
|
|
|
|
|
|
+ $TBL_LANGUAGES = Database::get_main_table(TABLE_MAIN_LANGUAGE);
|
|
|
+ $sql="SELECT isocode FROM ".$TBL_LANGUAGES." WHERE english_name='".$_SESSION["_user"]["language"]."'";
|
|
|
+ $result_sql=api_sql_query($sql);
|
|
|
+ $isocode_language=mysql_result($result_sql,0,0);
|
|
|
+ $oFCKeditor->Config['DefaultLanguage'] = $isocode_language;
|
|
|
+
|
|
|
echo $oFCKeditor->CreateHtml();
|
|
|
|
|
|
?>
|
|
@@ -677,6 +683,12 @@ if($action == 'edit_news'){
|
|
|
$oFCKeditor->Config['CustomConfigurationsPath'] = api_get_path(REL_PATH)."main/inc/lib/fckeditor/myconfig.js";
|
|
|
$oFCKeditor->ToolbarSet = "Small";
|
|
|
|
|
|
+ $TBL_LANGUAGES = Database::get_main_table(TABLE_MAIN_LANGUAGE);
|
|
|
+ $sql="SELECT isocode FROM ".$TBL_LANGUAGES." WHERE english_name='".$_SESSION["_user"]["language"]."'";
|
|
|
+ $result_sql=api_sql_query($sql);
|
|
|
+ $isocode_language=mysql_result($result_sql,0,0);
|
|
|
+ $oFCKeditor->Config['DefaultLanguage'] = $isocode_language;
|
|
|
+
|
|
|
echo $oFCKeditor->CreateHtml();
|
|
|
?>
|
|
|
|