aboutsummaryrefslogtreecommitdiffstats
path: root/picture.php
diff options
context:
space:
mode:
Diffstat (limited to 'picture.php')
-rw-r--r--picture.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/picture.php b/picture.php
index 289839e7a..7bb52056e 100644
--- a/picture.php
+++ b/picture.php
@@ -657,10 +657,13 @@ foreach (array('first','previous','next','last', 'current') as $which_image)
'U_IMG' =>
add_url_params(
$picture[$which_image]['url'], $slideshow_url_params),
- 'U_DOWNLOAD' => @$picture['current']['download_url'],
)
)
);
+ if ($conf['picture_download_icon'] and !empty($picture['current']['download_url']))
+ {
+ $template->append($which_image, array('U_DOWNLOAD' => $picture['current']['download_url']), true);
+ }
}
}
@@ -918,6 +921,7 @@ $infos['INFO_VISITS'] = $picture['current']['hit'];
$infos['INFO_FILE'] = $picture['current']['file'];
$template->assign($infos);
+$template->assign('display_info', unserialize($conf['picture_informations']));
// related tags
$tags = get_common_tags( array($page['image_id']), -1);