From 4b4d79c2392ac17ff208b50bb8b051e1ca18137f Mon Sep 17 00:00:00 2001 From: plegall Date: Mon, 28 Jun 2010 23:12:40 +0000 Subject: merge r6618 from branch 2.1 to trunk bug 1746 fixed: a missing GD library is a setup error, it blocks the upload form. git-svn-id: http://piwigo.org/svn/trunk@6620 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