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

skala
Eric Marguin 19 years ago
parent 5cba2c3393
commit 948b25998e
  1. 6
      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();
}

Loading…
Cancel
Save