summaryrefslogtreecommitdiffstats
path: root/phpfspot.class.php
diff options
context:
space:
mode:
authorAndreas Unterkircher <unki@netshadow.at>2007-07-14 06:27:20 +0000
committerAndreas Unterkircher <unki@netshadow.at>2007-07-14 06:27:20 +0000
commit99b313d1ae233bc46374a6ba435447b5f7b669af (patch)
tree6e03094fb8b120690eb0cf89aa32b6d4700925f8 /phpfspot.class.php
parent3dad235d36e8e2df34540f058cd3600de60ef652 (diff)
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
Diffstat (limited to 'phpfspot.class.php')
-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) {