From 46e324e5828673abf8b6bde5d13f192fe7060270 Mon Sep 17 00:00:00 2001 From: plegall Date: Mon, 28 Jun 2010 21:54:04 +0000 Subject: bug 1746 fixed: a missing GD library is a setup error, it blocks the upload form. git-svn-id: http://piwigo.org/svn/branches/2.1@6618 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/photos_add_direct.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/admin/photos_add_direct.php b/admin/photos_add_direct.php index 682e4baaa..7d094755d 100644 --- a/admin/photos_add_direct.php +++ b/admin/photos_add_direct.php @@ -450,6 +450,11 @@ if (!empty($error_message)) array_push($setup_errors, $error_message); } +if (!function_exists('gd_info')) +{ + array_push($setup_errors, l10n('GD library is missing')); +} + $template->assign( array( 'setup_errors'=> $setup_errors, -- cgit v1.2.3