From 99b313d1ae233bc46374a6ba435447b5f7b669af Mon Sep 17 00:00:00 2001 From: Andreas Unterkircher Date: Sat, 14 Jul 2007 06:27:20 +0000 Subject: [PATCH] issue27, on gallery export use links which will guide back the user into phpfspot instead directly open the image with phpfspot_img.php git-svn-id: file:///var/lib/svn/phpfspot/trunk@195 fa6a889d-dae6-447d-9e79-4ba9a3039384 --- phpfspot.class.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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) { -- 2.25.1