gestion des images dans fckeditor
This commit is contained in:
parent
720698a1b8
commit
814da4e72c
@ -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.
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user