Dotclear


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/public/prepend.php

    r1949 r2541  
    101101     } 
    102102} 
    103       
     103 
    104104# If theme doesn't exist, stop everything 
    105105if (!$core->themes->moduleExists($__theme)) { 
     
    134134     $__theme_tpl_path[] = $core->blog->themes_path.'/'.$__parent_theme.'/tpl'; 
    135135} 
    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'); 
     137if (!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} 
    142147$core->url->mode = $core->blog->settings->system->url_scan; 
    143148 
     
    145150     # --BEHAVIOR-- publicBeforeDocument 
    146151     $core->callBehavior('publicBeforeDocument',$core); 
    147       
     152 
    148153     $core->url->getDocument(); 
    149       
     154 
    150155     # --BEHAVIOR-- publicAfterDocument 
    151156     $core->callBehavior('publicAfterDocument',$core); 
     
    155160          ,660); 
    156161} 
    157 ?> 
     162 
Note: See TracChangeset for help on using the changeset viewer.

Sites map