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
This commit is contained in:
parent
dc40995cad
commit
9a18da34fd
1 changed files with 6 additions and 0 deletions
|
@ -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 |
|
||||
// +-----------------------------------------------------------------------+
|
||||
|
|
Loading…
Add table
Reference in a new issue