diff --git a/main/announcements/announcements.php b/main/announcements/announcements.php index 0f83615f82..43cd9ea601 100644 --- a/main/announcements/announcements.php +++ b/main/announcements/announcements.php @@ -1,4 +1,4 @@ -BasePath = api_get_path(WEB_PATH) . 'main/inc/lib/fckeditor/' ; + + $oFCKeditor->ToolbarSet = "Announcements"; $oFCKeditor->Height = '250'; $oFCKeditor->Width = '100%'; $oFCKeditor->Value = $content_to_modify; - if (api_get_setting('advanced_filemanager') == 'true') - { - $oFCKeditor->Config['CustomConfigurationsPath'] = api_get_path(REL_PATH)."main/inc/lib/fckeditor/myconfig_afm.js"; - } - else - { - $oFCKeditor->Config['CustomConfigurationsPath'] = api_get_path(REL_PATH)."main/inc/lib/fckeditor/myconfig.js"; - } - - $oFCKeditor->ToolbarSet = "Announcements"; - - $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, __FILE__, __LINE__); - $isocode_language=Database::result($result_sql,0,0); - $oFCKeditor->Config['DefaultLanguage'] = $isocode_language; - - echo $oFCKeditor->CreateHtml(); echo'
';