Hi,
manhta Is possible with your advices I've solved.
I ask why the code below do not log (not modify my php scripts... it's only to know how to do if I need more logs)?
static public function isValidType($type) {
$type = CStringHelper::strtolower($type);
$validType = array('image/png', 'image/x-png', 'image/gif', 'image/jpeg', 'image/pjpeg');
JLog::add('type='.$type, Log::ERROR, 'MY-ERROR');//<--------- My log
return in_array($type, $validType);
}
Thanks for your precious help