correctly log errors when external imagick fails

git-svn-id: http://piwigo.org/svn/trunk@16076 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
rvelices
2012-06-27 04:19:38 +00:00
parent 0bbca1dcbf
commit 9d42cbed3d
+3 -1
View File
@@ -622,13 +622,15 @@ class image_ext_imagick implements imageInterface
}
$dest = pathinfo($destination_filepath);
$exec .= ' "'.realpath($dest['dirname']).'/'.$dest['basename'].'"';
$exec .= ' "'.realpath($dest['dirname']).'/'.$dest['basename'].'" 2>&1';
@exec($exec, $returnarray);
ilog($exec);
if (is_array($returnarray) && (count($returnarray)>0) )
{
ilog('ERROR', $returnarray);
foreach($returnarray as $line)
trigger_error($line, E_USER_WARNING);
}
return is_array($returnarray);
}