summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--phpfspot.class.php1
-rw-r--r--templates/single_photo.tpl4
2 files changed, 4 insertions, 1 deletions
diff --git a/phpfspot.class.php b/phpfspot.class.php
index e4ca4ff..de2adc0 100644
--- a/phpfspot.class.php
+++ b/phpfspot.class.php
@@ -111,6 +111,7 @@ class PHPFSPOT {
$this->tmpl->assign('madewith', $meta['Make'] ." ". $meta['Model']);
$this->tmpl->assign('image_name', $details['name']);
$this->tmpl->assign('image_url', 'phpfspot_img.php?idx='. $photo ."&width=". $this->cfg->photo_width);
+ $this->tmpl->assign('image_url_full', 'phpfspot_img.php?idx='. $photo);
if($previous_img) {
$this->tmpl->assign('previous_url', "javascript:showImage(". $previous_img .");");
diff --git a/templates/single_photo.tpl b/templates/single_photo.tpl
index 28c416d..51d4663 100644
--- a/templates/single_photo.tpl
+++ b/templates/single_photo.tpl
@@ -5,7 +5,9 @@
<b>Photo {$image_name}</b>, {$c_date}, {$madewith}<br />
</td>
<td class="index_header" style="text-align: right;">
- <img src="resources/loupe.png" />
+ <a href="{$image_url_full}" target="_blank">
+ <img src="resources/loupe.png" />
+ </a>
<img src="resources/information.png" />
</td>
</tr>