- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/public/prepend.php
r2541 r1949 101 101 } 102 102 } 103 103 104 104 # If theme doesn't exist, stop everything 105 105 if (!$core->themes->moduleExists($__theme)) { … … 134 134 $__theme_tpl_path[] = $core->blog->themes_path.'/'.$__parent_theme.'/tpl'; 135 135 } 136 $tplset = $core->themes->moduleInfo($core->blog->settings->system->theme,'tplset'); 137 if (!empty($tplset) && is_dir(dirname(__FILE__).'/default-templates/'.$tplset)) { 138 $core->tpl->setPath( 139 $__theme_tpl_path, 140 dirname(__FILE__).'/default-templates/'.$tplset, 141 $core->tpl->getPath()); 142 } else { 143 $core->tpl->setPath( 144 $__theme_tpl_path, 145 $core->tpl->getPath()); 146 } 136 137 $core->tpl->setPath( 138 $__theme_tpl_path, 139 dirname(__FILE__).'/default-templates', 140 $core->tpl->getPath()); 141 147 142 $core->url->mode = $core->blog->settings->system->url_scan; 148 143 … … 150 145 # --BEHAVIOR-- publicBeforeDocument 151 146 $core->callBehavior('publicBeforeDocument',$core); 152 147 153 148 $core->url->getDocument(); 154 149 155 150 # --BEHAVIOR-- publicAfterDocument 156 151 $core->callBehavior('publicAfterDocument',$core); … … 160 155 ,660); 161 156 } 162 157 ?>
Note: See TracChangeset
for help on using the changeset viewer.