diff --git a/htdocs/includes/fckeditor/editor/filemanager/upload/php/config.php b/htdocs/includes/fckeditor/editor/filemanager/upload/php/config.php index 30b28105fc5..4de5e9a1a3a 100644 --- a/htdocs/includes/fckeditor/editor/filemanager/upload/php/config.php +++ b/htdocs/includes/fckeditor/editor/filemanager/upload/php/config.php @@ -21,16 +21,16 @@ global $Config ; // SECURITY: You must explicitelly enable this "uploader". -$Config['Enabled'] = false ; +$Config['Enabled'] = true ; // Path to uploaded files relative to the document root. -$Config['UserFilesPath'] = '/UserFiles/' ; +$Config['UserFilesPath'] = '/images/' ; // Fill the following value it you prefer to specify the absolute path for the // user files directory. Usefull if you are using a virtual directory, symbolic // link or alias. Examples: 'C:\\MySite\\UserFiles\\' or '/root/mysite/UserFiles/'. // Attention: The above 'UserFilesPath' must point to the same directory. -$Config['UserFilesAbsolutePath'] = '' ; +$Config['UserFilesAbsolutePath'] = $conf->fckeditor->dir_images ; // Due to security issues with Apache modules, it is reccomended to leave the // following setting enabled. diff --git a/htdocs/includes/modules/modFckeditor.class.php b/htdocs/includes/modules/modFckeditor.class.php index 05b69302319..ff963ca2cfb 100644 --- a/htdocs/includes/modules/modFckeditor.class.php +++ b/htdocs/includes/modules/modFckeditor.class.php @@ -83,6 +83,11 @@ class modFckeditor extends DolibarrModules */ function init() { + global $conf; + + // Dir + $this->dirs[0] = $conf->fckeditor->dir_images; + $sql = array(); return $this->_init($sql);