issue27, on gallery export use links which will guide back the user into phpfspot...
authorAndreas Unterkircher <unki@netshadow.at>
Sat, 14 Jul 2007 06:27:20 +0000 (06:27 +0000)
committerAndreas Unterkircher <unki@netshadow.at>
Sat, 14 Jul 2007 06:27:20 +0000 (06:27 +0000)
git-svn-id: file:///var/lib/svn/phpfspot/trunk@195 fa6a889d-dae6-447d-9e79-4ba9a3039384

phpfspot.class.php

index dd634dbe70a8b8cc5cb974de880482dabf72030d..5e25f21b81d446d3c1097b630a44b40ba7ae978c 100644 (file)
@@ -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) {