diff options
author | plegall <plg@piwigo.org> | 2010-06-29 00:26:43 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2010-06-29 00:26:43 +0000 |
commit | de5efe8330ecc09bd37fa93bd0c0560574591ba1 (patch) | |
tree | 7b61341eef910b3b98dc85181d6aff592106ee4b /admin/photos_add_direct.php | |
parent | 4b4d79c2392ac17ff208b50bb8b051e1ca18137f (diff) |
merge r6621 from branch 2.1 to trunk
bug 1742 fixed: if the EXIF functions are not available:
1) display a warning (but not an error)
2) avoid to try to read EXIF data
git-svn-id: http://piwigo.org/svn/trunk@6622 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | admin/photos_add_direct.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/admin/photos_add_direct.php b/admin/photos_add_direct.php index 7d094755d..6a7aea884 100644 --- a/admin/photos_add_direct.php +++ b/admin/photos_add_direct.php @@ -443,6 +443,7 @@ $template->assign( // +-----------------------------------------------------------------------+ $setup_errors = array(); +$setup_warnings = array(); $error_message = ready_for_upload_message(); if (!empty($error_message)) @@ -455,9 +456,18 @@ if (!function_exists('gd_info')) array_push($setup_errors, l10n('GD library is missing')); } +if ($conf['use_exif'] and !function_exists('read_exif_data')) +{ + array_push( + $setup_warnings, + l10n('Exif extension not available, admin should disable exif use') + ); +} + $template->assign( array( 'setup_errors'=> $setup_errors, + 'setup_warnings' => $setup_warnings, ) ); |