From 8e14a6b9e1c7d2dfc25e786c425d76acc115f393 Mon Sep 17 00:00:00 2001 From: Andreas Unterkircher Date: Tue, 13 May 2008 19:31:16 +0200 Subject: issue118, user-friendly-url's to jump from photo-index to single-photo-view Signed-off-by: Andreas Unterkircher --- phpfspot.class.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'phpfspot.class.php') 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() -- cgit v1.2.3-18-g5258