diff options
author | Andreas Unterkircher <unki@netshadow.at> | 2008-03-27 21:17:47 +0100 |
---|---|---|
committer | Andreas Unterkircher <unki@netshadow.at> | 2008-03-27 21:17:47 +0100 |
commit | 2b589908f4624b0ee41217f21d5b0b7cb383d38c (patch) | |
tree | cbc4ed2f9c42086b31f932e11e6213929bef97f0 /phpfspot_tmpl.php | |
parent | ba67cbf2ecb051b36ba0985099a76456b5c38e15 (diff) |
enable or disable lightbox2 preview with use_lightbox config var
Signed-off-by: Andreas Unterkircher <unki@netshadow.at>
Diffstat (limited to 'phpfspot_tmpl.php')
-rw-r--r-- | phpfspot_tmpl.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/phpfspot_tmpl.php b/phpfspot_tmpl.php index e8cdc77..52c983e 100644 --- a/phpfspot_tmpl.php +++ b/phpfspot_tmpl.php @@ -38,7 +38,8 @@ class PHPFSPOT_TMPL extends Smarty { $this->config_dir = $parent->cfg->base_path .'/smarty_config'; $this->cache_dir = $parent->cfg->base_path .'/smarty_cache'; - $this->assign('use_lightbox', 'true'); + if(isset($parent->cfg->use_lightbox) && $parent->cfg->use_lightbox == true) + $this->assign('use_lightbox', 'true'); } // __construct() |