diff options
author | Andreas Unterkircher <unki@netshadow.at> | 2007-07-04 19:02:47 +0000 |
---|---|---|
committer | Andreas Unterkircher <unki@netshadow.at> | 2007-07-04 19:02:47 +0000 |
commit | 8f56c03f5e097d31ba940e6f97f65e0e23ae3861 (patch) | |
tree | 0624ef414512552a6fae36649696cff45e202637 /phpfspot.class.php | |
parent | d7790a08d8d457bf07d0277fc9fda3811faf2362 (diff) |
issue13, if user jumps into from an external link, immediatley display the photo index according the tag selection provided
git-svn-id: file:///var/lib/svn/phpfspot/trunk@162 fa6a889d-dae6-447d-9e79-4ba9a3039384
Diffstat (limited to 'phpfspot.class.php')
-rw-r--r-- | phpfspot.class.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/phpfspot.class.php b/phpfspot.class.php index 9d159ff..204c8a7 100644 --- a/phpfspot.class.php +++ b/phpfspot.class.php @@ -532,7 +532,10 @@ class PHPFSPOT { $current_tags = substr($current_tags, 0, strlen($current_tags)-1); } - $extern_link = "http://". $_SERVER['SERVER_NAME'] ."/index.php?mode=showpi&tags=". $current_tags; + $extern_link = "http://". $_SERVER['SERVER_NAME'] ."/index.php?mode=showpi"; + if($current_tags != "") { + $extern_link.= "&tags=". $current_tags; + } $this->tmpl->assign('extern_link', $extern_link); $this->tmpl->assign('count', $count); |