Skip to content

Commit

Permalink
merge -c2427 from branch 1.7 to trunk
Browse files Browse the repository at this point in the history
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
  • Loading branch information
plegall committed Jul 9, 2008
1 parent 4624534 commit 22ce08c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions admin/thumbnail.php
Expand Up @@ -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 |
// +-----------------------------------------------------------------------+
Expand Down
2 changes: 1 addition & 1 deletion language/en_UK/admin.lang.php
Expand Up @@ -648,5 +648,5 @@
$lang['Deleted on'] = 'Deleted on';
$lang['Last hit'] = 'Last hit';
$lang['Hits'] = 'Hits';

$lang['GD library is missing'] = 'GD library is missing';
?>
2 changes: 1 addition & 1 deletion language/fr_FR/admin.lang.php
Expand Up @@ -648,5 +648,5 @@
$lang['Deleted on'] = 'Effacé le';
$lang['Last hit'] = 'Dernier accès';
$lang['Hits'] = 'Utilisations';

$lang['GD library is missing'] = 'la bibliothèque GD est manquante';
?>

0 comments on commit 22ce08c

Please sign in to comment.