- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/public/prepend.php
r1949 r2541 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 137 $core->tpl->setPath( 138 $__theme_tpl_path, 139 dirname(__FILE__).'/default-templates', 140 $core->tpl->getPath()); 141 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 } 142 147 $core->url->mode = $core->blog->settings->system->url_scan; 143 148 … … 145 150 # --BEHAVIOR-- publicBeforeDocument 146 151 $core->callBehavior('publicBeforeDocument',$core); 147 152 148 153 $core->url->getDocument(); 149 154 150 155 # --BEHAVIOR-- publicAfterDocument 151 156 $core->callBehavior('publicAfterDocument',$core); … … 155 160 ,660); 156 161 } 157 ?> 162
Note: See TracChangeset
for help on using the changeset viewer.