X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=phpfspot.git;a=blobdiff_plain;f=phpfspot.class.php;h=5e25f21b81d446d3c1097b630a44b40ba7ae978c;hp=dd634dbe70a8b8cc5cb974de880482dabf72030d;hb=99b313d1ae233bc46374a6ba435447b5f7b669af;hpb=3dad235d36e8e2df34540f058cd3600de60ef652 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) {