aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2008-07-09 20:59:24 +0000
committerplegall <plg@piwigo.org>2008-07-09 20:59:24 +0000
commit9a18da34fd6e48b814d966792a2629f47c3fe59b (patch)
tree2a6353fe7d610b5ff02c251d9b6ec14498228e73 /admin
parentdc40995cadbe16399dcbdfdb46c745f4cbccb226 (diff)
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/branches/branch-1_7@2427 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin')
-rw-r--r--admin/thumbnail.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/admin/thumbnail.php b/admin/thumbnail.php
index 44c749236..13a66a0c2 100644
--- a/admin/thumbnail.php
+++ b/admin/thumbnail.php
@@ -155,6 +155,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 |
// +-----------------------------------------------------------------------+