Ok, I know what happens, now !
return array(
'DIR_PEDIGREES_PHOTO' => $config->get("upload_dir_pedigrees_photo", "[COM_SITE]" .DS. "files" .DS. "pedigrees_photo") .DS,
'DIR_PEDIGREES_LOGO' => $config->get("upload_dir_pedigrees_logo", "[COM_SITE]" .DS. "files" .DS. "pedigrees_logo") .DS,
'DIR_PORTEES_PHOTO_CHIOTS' => $config->get("upload_dir_portees_photo_chiots", "[COM_SITE]" .DS. "files" .DS. "portees_photo_chiots") .DS,
'DIR_ACTUALITES_PHOTO' => $config->get("upload_dir_actualites_photo", "[COM_SITE]" .DS. "files" .DS. "actualites_photo") .DS,
'DIR__TRASH' => $config->get("trash_dir", JPATH_ADMIN_JBREEDM .DS. "images" . DS . "trash") .DS,
'COM_ADMIN' => JPATH_ADMIN_JBREEDM,
'ADMIN' => JPATH_ADMINISTRATOR,
'COM_SITE' => JPATH_SITE_JBREEDM,
'IMAGES' => JPATH_SITE .DS. $config->get('image_path', 'images') .DS,
'MEDIAS' => JPATH_SITE .DS. $configMedias->get('file_path', 'images') .DS,
'ROOT' => JPATH_SITE
);
}
When the code is generate,
the images DIR is writed in the code (classes/file.php), and in the config.xml file.
The problem :
The user has the possibility to rename the images DIR with the Params Button (Component configuration).
In that case, the call to
$config->get("upload_dir_pedigrees_photo" ...)
returns the default value [COM_SITE] ...