Procházet zdrojové kódy

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

Eric Marguin před 18 roky
rodič
revize
948b25998e
1 změnil soubory, kde provedl 6 přidání a 0 odebrání
  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();
 									}