Fix: problem with image in emailing
Fix: use the same image path of fckeditor default path
This commit is contained in:
parent
c4b2d262b9
commit
b3ab387825
@ -61,7 +61,7 @@ class modFckeditor extends DolibarrModules
|
||||
$this->picto='list';
|
||||
|
||||
// Data directories to create when module is enabled
|
||||
$this->dirs = array("/fckeditor/temp","/fckeditor/images");
|
||||
$this->dirs = array("/fckeditor/temp","/fckeditor/image");
|
||||
|
||||
// Config pages
|
||||
$this->config_page_url = array("fckeditor.php");
|
||||
|
||||
@ -276,6 +276,13 @@ if ($modulepart)
|
||||
$accessallowed=1;
|
||||
$original_file=$conf->scanner->dir_temp.'/'.$user->id.'/'.$original_file;
|
||||
}
|
||||
|
||||
// Wrapping pour les images fckeditor
|
||||
elseif ($modulepart == 'fckeditor')
|
||||
{
|
||||
$accessallowed=1;
|
||||
$original_file=$conf->fckeditor->dir_output.'/'.$original_file;
|
||||
}
|
||||
|
||||
// GENERIC Wrapping
|
||||
// If modulepart=module_user_temp Allows any module to open a file if file is in directory called DOL_DATA_ROOT/modulepart/temp/iduser
|
||||
|
||||
Loading…
Reference in New Issue
Block a user