From 1facb0b7b0722471b926cae9b2d1d5d32a905f81 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 7 Nov 2006 06:30:43 +0000 Subject: [PATCH] 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. --- addressbook/setup/setup.inc.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/addressbook/setup/setup.inc.php b/addressbook/setup/setup.inc.php index e34a4f0971..23a43fd4b2 100755 --- a/addressbook/setup/setup.inc.php +++ b/addressbook/setup/setup.inc.php @@ -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.", + ), +);