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';
|
$this->picto='list';
|
||||||
|
|
||||||
// Data directories to create when module is enabled
|
// Data directories to create when module is enabled
|
||||||
$this->dirs = array("/fckeditor/temp","/fckeditor/images");
|
$this->dirs = array("/fckeditor/temp","/fckeditor/image");
|
||||||
|
|
||||||
// Config pages
|
// Config pages
|
||||||
$this->config_page_url = array("fckeditor.php");
|
$this->config_page_url = array("fckeditor.php");
|
||||||
|
|||||||
@ -277,6 +277,13 @@ if ($modulepart)
|
|||||||
$original_file=$conf->scanner->dir_temp.'/'.$user->id.'/'.$original_file;
|
$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
|
// 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
|
// If modulepart=module_user_temp Allows any module to open a file if file is in directory called DOL_DATA_ROOT/modulepart/temp/iduser
|
||||||
// If modulepart=module_temp Allows any module to open a file if file is in directory called DOL_DATA_ROOT/modulepart/temp
|
// If modulepart=module_temp Allows any module to open a file if file is in directory called DOL_DATA_ROOT/modulepart/temp
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user