Dotclear


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/public/prepend.php

    r1128 r921  
    5555} catch (Exception $e) {} 
    5656 
    57 # Add public default templates path 
    58 $core->tpl->getLoader()->addPath(dirname(__FILE__).'/default-templates'); 
    59 # Set public context 
    60 $_ctx = new dcPublicContext($core); 
    61 $core->tpl->addExtension($_ctx); 
    62  
    63 /* 
    6457# Creating template context 
    6558$_ctx = new context(); 
     
    7164          ,640); 
    7265} 
    73 */ 
     66 
    7467# Loading locales 
    7568$_lang = $core->blog->settings->system->lang; 
     
    127120 
    128121# --BEHAVIOR-- publicPrepend 
    129 $core->callBehavior('publicPrepend',$core,$_ctx); 
     122$core->callBehavior('publicPrepend',$core); 
    130123 
    131124# Prepare the HTTP cache thing 
     
    134127$mod_ts[] = $core->blog->upddt; 
    135128 
    136  
    137 # Add parent theme path 
    138 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 list 
    142 if (is_dir($core->blog->themes_path.'/'.$__theme.'/tpl')) { 
    143      $core->tpl->getLoader()->prependPath($core->blog->themes_path.'/'.$__theme.'/tpl'); 
    144 } 
    145 /* 
    146129$__theme_tpl_path = array( 
    147130     $core->blog->themes_path.'/'.$__theme.'/tpl' 
     
    155138     dirname(__FILE__).'/default-templates', 
    156139     $core->tpl->getPath()); 
    157 */ 
     140 
    158141$core->url->mode = $core->blog->settings->system->url_scan; 
    159142 
Note: See TracChangeset for help on using the changeset viewer.

Sites map