From 9a18da34fd6e48b814d966792a2629f47c3fe59b Mon Sep 17 00:00:00 2001 From: plegall Date: Wed, 9 Jul 2008 20:59:24 +0000 Subject: 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 --- 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 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 | // +-----------------------------------------------------------------------+ -- cgit v1.2.3