don't allow showing of metadata at all if exif_read_data is undefined
This commit is contained in:
parent
d820f9a927
commit
0be4f83e4e
2 changed files with 4 additions and 2 deletions
|
@ -6,7 +6,7 @@ class PixelFileHandlerTheme extends Themelet {
|
|||
|
||||
$u_ilink = $image->get_image_link();
|
||||
$html = "<img alt='main image' id='main_image' src='$u_ilink'>";
|
||||
if($config->get_bool("image_show_meta")) {
|
||||
if($config->get_bool("image_show_meta") && function_exists("exif_read_data")) {
|
||||
# FIXME: only read from jpegs?
|
||||
$exif = @exif_read_data($image->get_image_filename(), 0, true);
|
||||
if($exif) {
|
||||
|
|
|
@ -139,7 +139,9 @@ class ImageIO extends Extension {
|
|||
$config->set_default_int('thumb_mem_limit', parse_shorthand_int('8MB'));
|
||||
$config->set_default_string('thumb_convert_path', 'convert.exe');
|
||||
|
||||
$config->set_default_bool('image_show_meta', false);
|
||||
if(function_exists("exif_read_data")) {
|
||||
$config->set_default_bool('image_show_meta', false);
|
||||
}
|
||||
$config->set_default_bool('image_jquery_confirm', true);
|
||||
$config->set_default_string('image_ilink', '');
|
||||
$config->set_default_string('image_tlink', '');
|
||||
|
|
Reference in a new issue