diff --git a/main/announcements/announcements.php b/main/announcements/announcements.php
index 6ccc2d01fa..64a1c1f994 100644
--- a/main/announcements/announcements.php
+++ b/main/announcements/announcements.php
@@ -1,4 +1,4 @@
-
'.api_get_path(WEB_CODE_PATH).'/survey/#page#?temp=#temp#&surveyid=#sid#&uid=#uid#&mail=#mail#&db_name=#db_name ';
}
- //api_disp_html_area('newContent',$content_to_modify,'250px');
-
- require_once(api_get_path(LIBRARY_PATH) . "/fckeditor/fckeditor.php");
- $oFCKeditor = new FCKeditor('newContent') ;
- $oFCKeditor->BasePath = api_get_path(WEB_PATH) . 'main/inc/lib/fckeditor/' ;
- $oFCKeditor->Height = '250';
- $oFCKeditor->Width = '100%';
- $oFCKeditor->Value = $content_to_modify;
- $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();
- if(empty($_SESSION['toolgroup'])){
- echo '
';
- }
- else{
- echo '
';
- }
- echo '
';
+ //api_disp_html_area('newContent',$content_to_modify,'250px');
+
+ require_once(api_get_path(LIBRARY_PATH) . "/fckeditor/fckeditor.php");
+ $oFCKeditor = new FCKeditor('newContent') ;
+ $oFCKeditor->BasePath = api_get_path(WEB_PATH) . 'main/inc/lib/fckeditor/' ;
+ $oFCKeditor->Height = '250';
+ $oFCKeditor->Width = '100%';
+ $oFCKeditor->Value = $content_to_modify;
+ $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;
+
+ $oFCKeditor->Config['AdvancedFileManager'] = api_get_setting('advanced_filemanager') == 'true' ? true : false;
+
+ echo $oFCKeditor->CreateHtml();
+
+ if(empty($_SESSION['toolgroup'])){
+ echo '
';
+ }
+ else{
+ echo '
';
+ }
+ echo '
';
+
if((isset($_GET['action']) && isset($_GET['id']) && is_array($to))||isset($_GET['remindallinactives'])||isset($_GET['remind_inactive'])){
echo '';
}