From 8e14a6b9e1c7d2dfc25e786c425d76acc115f393 Mon Sep 17 00:00:00 2001 From: Andreas Unterkircher Date: Tue, 13 May 2008 19:31:16 +0200 Subject: [PATCH] issue118, user-friendly-url's to jump from photo-index to single-photo-view Signed-off-by: Andreas Unterkircher --- phpfspot.class.php | 5 +++++ themes/default/templates/photo_index.tpl | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/phpfspot.class.php b/phpfspot.class.php index 0e2ea44..f938dbc 100644 --- a/phpfspot.class.php +++ b/phpfspot.class.php @@ -223,6 +223,11 @@ class PHPFSPOT { if(isset($_SESSION['begin_with']) && $this->cfg->thumbs_per_page == 0) unset($_SESSION['begin_with']); + // if user-friendly-url's are enabled, set also a flag for the template handler + if($this->is_user_friendly_url()) { + $this->tmpl->assign('user_friendly_url', 'true'); + } + } // __construct() public function __destruct() diff --git a/themes/default/templates/photo_index.tpl b/themes/default/templates/photo_index.tpl index b14afe4..9f0531e 100644 --- a/themes/default/templates/photo_index.tpl +++ b/themes/default/templates/photo_index.tpl @@ -69,7 +69,11 @@ {if $images[thumb] }