From 8f56c03f5e097d31ba940e6f97f65e0e23ae3861 Mon Sep 17 00:00:00 2001 From: Andreas Unterkircher Date: Wed, 4 Jul 2007 19:02:47 +0000 Subject: 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 --- phpfspot.class.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'phpfspot.class.php') 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); -- cgit v1.2.3-18-g5258