added check for the gd-extension and the existens of the function 'imagecreatefromjpeg', which is only availible if the gd-extension is compiled with jpeg support.

This commit is contained in:
Ralf Becker 2006-11-07 06:30:43 +00:00
parent db96ba1252
commit 1facb0b7b0

View File

@ -50,4 +50,14 @@ $setup_info['addressbook']['depends'][] = array(
'versions' => Array('1.2','1.3','1.4')
);
// installation checks for addresbook
$setup_info['projectmanager']['check_install'] = array(
'gd' => array(
'func' => 'extension_check',
),
'imagecreatefromjpeg' => array(
'func' => 'func_exist',
'warning' => "The imagecreatefromjpeg function is supplied by the gd extension (complied with jpeg support!). It's needed to upload photos for contacts.",
),
);