mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
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:
@@ -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 |
|
||||
// +-----------------------------------------------------------------------+
|
||||
|
||||
@@ -648,5 +648,5 @@ $lang['c13y_version_correction'] = 'You need to upgrade your system to take full
|
||||
$lang['Deleted on'] = 'Deleted on';
|
||||
$lang['Last hit'] = 'Last hit';
|
||||
$lang['Hits'] = 'Hits';
|
||||
|
||||
$lang['GD library is missing'] = 'GD library is missing';
|
||||
?>
|
||||
|
||||
@@ -648,5 +648,5 @@ $lang['c13y_version_correction'] = 'Vous devez mettre à jour votre système pou
|
||||
$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';
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user