From 22ce08c6fbc9f52152ac300156d72256d76a1d64 Mon Sep 17 00:00:00 2001 From: plegall Date: Wed, 9 Jul 2008 21:08:32 +0000 Subject: merge -c2427 from branch 1.7 to trunk bug 802 fixed: if GD library is not available, display an explicit error, even before trying to generated any thumbnail. git-svn-id: http://piwigo.org/svn/trunk@2428 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/thumbnail.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'admin/thumbnail.php') diff --git a/admin/thumbnail.php b/admin/thumbnail.php index 57ecf9cdb..a68395ce4 100644 --- a/admin/thumbnail.php +++ b/admin/thumbnail.php @@ -151,6 +151,12 @@ function RatioResizeImg($path, $newWidth, $newHeight, $tn_ext) $pictures = array(); $stats = array(); + +if (!function_exists('gd_info')) +{ + array_push($page['errors'], l10n('GD library is missing')); +} + // +-----------------------------------------------------------------------+ // | template initialization | // +-----------------------------------------------------------------------+ -- cgit v1.2.3