X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=phpfspot.git;a=blobdiff_plain;f=phpfspot.class.php;h=54308aa25ca3e109e2e4d7c7ada4e958b72a1b44;hp=0e2ea44b7cd9ae92fcd8cbc04d13f2fced4f0228;hb=b690db6fe75d323ff4f30e2be0a447a75e140cb5;hpb=8a63e413682afe18c55098f7fc165d602288337a;ds=sidebyside diff --git a/phpfspot.class.php b/phpfspot.class.php index 0e2ea44..54308aa 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() @@ -773,17 +778,10 @@ class PHPFSPOT { break; case 'img': $output.= " -