Changeset 5101
- Timestamp:
- Mar 10, 2010, 11:22:30 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/template.class.php
r5095 r5101 101 101 function set_template_dir($dir) 102 102 { 103 if (!defined('IN_ADMIN')) 103 $modeling = $this->get_themeconf('modeling'); 104 if (!defined('IN_ADMIN') and ($modeling !== false)) 104 105 { // Modeling is active only on gallery side and never in admin 105 106 // Set the normal directory 106 107 $this->smarty->template_dir = array($dir); 107 108 // Modeling by theme parameter 108 $model ing = './template/' . $this->get_themeconf('modeling');109 if ( $model ing != './template/' and is_dir($modeling))109 $model = './template/' . $modeling; 110 if ( $model != './template/' and is_dir($model)) 110 111 { 111 $this->smarty->template_dir[] = $model ing;112 $this->smarty->template_dir[] = $model; 112 113 } 113 114 // Default template directory
Note: See TracChangeset
for help on using the changeset viewer.