issue118, user-friendly-url's to jump from photo-index to single-photo-view
[phpfspot.git] / phpfspot.class.php
index 0e2ea44b7cd9ae92fcd8cbc04d13f2fced4f0228..f938dbc30ef4710640744fa619ec8bf19213d377 100644 (file)
@@ -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()