- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/public/prepend.php
r1128 r921 55 55 } catch (Exception $e) {} 56 56 57 # Add public default templates path58 $core->tpl->getLoader()->addPath(dirname(__FILE__).'/default-templates');59 # Set public context60 $_ctx = new dcPublicContext($core);61 $core->tpl->addExtension($_ctx);62 63 /*64 57 # Creating template context 65 58 $_ctx = new context(); … … 71 64 ,640); 72 65 } 73 */ 66 74 67 # Loading locales 75 68 $_lang = $core->blog->settings->system->lang; … … 127 120 128 121 # --BEHAVIOR-- publicPrepend 129 $core->callBehavior('publicPrepend',$core ,$_ctx);122 $core->callBehavior('publicPrepend',$core); 130 123 131 124 # Prepare the HTTP cache thing … … 134 127 $mod_ts[] = $core->blog->upddt; 135 128 136 137 # Add parent theme path138 if ($__parent_theme && is_dir($core->blog->themes_path.'/'.$__parent_theme.'/tpl')) {139 $core->tpl->getLoader()->addPath($core->blog->themes_path.'/'.$__parent_theme.'/tpl');140 }141 # Add theme path at the begining of path list142 if (is_dir($core->blog->themes_path.'/'.$__theme.'/tpl')) {143 $core->tpl->getLoader()->prependPath($core->blog->themes_path.'/'.$__theme.'/tpl');144 }145 /*146 129 $__theme_tpl_path = array( 147 130 $core->blog->themes_path.'/'.$__theme.'/tpl' … … 155 138 dirname(__FILE__).'/default-templates', 156 139 $core->tpl->getPath()); 157 */ 140 158 141 $core->url->mode = $core->blog->settings->system->url_scan; 159 142
Note: See TracChangeset
for help on using the changeset viewer.