Fix: problem with image in emailing

Fix: use the same image path of fckeditor default path
This commit is contained in:
Regis Houssin 2011-03-23 17:22:11 +00:00
parent c4b2d262b9
commit b3ab387825
2 changed files with 8 additions and 1 deletions

View File

@ -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");

View File

@ -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