summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--phpfspot.class.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/phpfspot.class.php b/phpfspot.class.php
index dd634db..5e25f21 100644
--- a/phpfspot.class.php
+++ b/phpfspot.class.php
@@ -1155,6 +1155,7 @@ class PHPFSPOT {
public function getExport($mode)
{
$pictures = $this->getPhotoSelection();
+ $current_tags = $this->getCurrentTags();
if(!isset($_SERVER['HTTPS'])) $protocol = "http";
else $protocol = "https";
@@ -1163,7 +1164,11 @@ class PHPFSPOT {
foreach($pictures as $picture) {
- $orig_url = $protocol ."://". $server_name . $this->cfg->web_path ."phpfspot_img.php?idx=". $picture ."&width=". $this->cfg->photo_width;
+ $orig_url = $protocol ."://". $server_name . $this->cfg->web_path ."index.php?mode=showp&id=". $picture;
+ if($current_tags != "") {
+ $orig_url.= "&tags=". $current_tags;
+ }
+
$thumb_url = $protocol ."://". $server_name . $this->cfg->web_path ."phpfspot_img.php?idx=". $picture ."&width=". $this->cfg->thumb_width;
switch($mode) {