aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--include/config_default.inc.php2
-rw-r--r--include/picture_metadata.inc.php7
2 files changed, 2 insertions, 7 deletions
diff --git a/include/config_default.inc.php b/include/config_default.inc.php
index 453a9a02b..f477fc267 100644
--- a/include/config_default.inc.php
+++ b/include/config_default.inc.php
@@ -310,7 +310,7 @@ $conf['show_exif_fields'] = array(
// use_exif: Use EXIF data during database synchronization with files
// metadata
-$conf['use_exif'] = false;
+$conf['use_exif'] = true;
// use_exif_mapping: same behaviour as use_iptc_mapping
$conf['use_exif_mapping'] = array(
diff --git a/include/picture_metadata.inc.php b/include/picture_metadata.inc.php
index a661a09e9..0cc7dc2ea 100644
--- a/include/picture_metadata.inc.php
+++ b/include/picture_metadata.inc.php
@@ -32,13 +32,8 @@
include_once(PHPWG_ROOT_PATH.'/include/functions_metadata.inc.php');
$template->assign_block_vars('metadata', array());
-if ($conf['show_exif'])
+if (($conf['show_exif']) and (function_exists('read_exif_data')))
{
- if (!function_exists('read_exif_data'))
- {
- die('Exif extension not available, admin should disable exif display');
- }
-
if ($exif = @read_exif_data($picture['current']['image_path']))
{
$exif = trigger_event('format_exif_data', $exif, $picture['current'] );