Browse Source

[svn r10561] set the correct language for fckeditor in LP

Eric Marguin 18 năm trước cách đây
mục cha
commit
948b25998e
1 tập tin đã thay đổi với 6 bổ sung0 xóa
  1. 6 0
      main/newscorm/learnpath.class.php

+ 6 - 0
main/newscorm/learnpath.class.php

@@ -5324,6 +5324,12 @@ class learnpath {
 										$oFCKeditor->Value		= $content;
 										$oFCKeditor->Config['CustomConfigurationsPath'] = api_get_path(REL_PATH)."main/inc/lib/fckeditor/myconfig.js";
 										$oFCKeditor->ToolbarSet = "Full";
+
+										$TBL_LANGUAGES = Database::get_main_table(TABLE_MAIN_LANGUAGE);
+										$sql="SELECT isocode FROM ".$TBL_LANGUAGES." WHERE english_name='".$_SESSION["_course"]["language"]."'";
+										$result_sql=api_sql_query($sql);
+										$isocode_language=mysql_result($result_sql,0,0);
+										$oFCKeditor->Config['DefaultLanguage'] = $isocode_language;
 										
 										$return .=	$oFCKeditor->CreateHtml();
 									}