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
This commit is contained in:
plegall
2008-07-09 21:08:32 +00:00
parent 462453465b
commit 22ce08c6fb
3 changed files with 8 additions and 2 deletions
+6
View File
@@ -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 |
// +-----------------------------------------------------------------------+