partkeepr

fork of partkeepr
git clone https://git.e1e0.net/partkeepr.git
Log | Files | Refs | Submodules | README | LICENSE

commit 0e2b9e863dbea79b74eed1abb8e4583f95819114
parent 1a71dc77d232c03424e9b472af901c2cd80d46d3
Author: Felicitus <felicitus@felicitus.org>
Date:   Wed,  4 Jul 2012 15:48:21 +0200

Check for the GD library, fixes #207

Diffstat:
Msrc/setup/tests/check-php-settings.php | 9+++++++++
1 file changed, 9 insertions(+), 0 deletions(-)

diff --git a/src/setup/tests/check-php-settings.php b/src/setup/tests/check-php-settings.php @@ -62,6 +62,15 @@ if (!class_exists("\\Imagick")) { } /* + * Check for the gd extension. +*/ +if (!function_exists("imagecreate")) { + $errorMessage = "You are missing the GD library for PHP. Please install and activate it."; + echo json_encode(array("error" => true, "message" => $errorMessage)); + exit; +} + +/* * Check if the timezone settings are valid. */ if (!isTimezoneSetAndValid()) {