Dotclear


Ignore:
Timestamp:
11/27/13 16:32:38 (12 years ago)
Author:
Dsls
Branch:
twig
Children:
2612:1537212bd291, 2613:014098e27ea0
Parents:
2468:d7fda5a0bd39 (diff), 2589:3d427735ca70 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Fusion avec default

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/public/prepend.php

    r2313 r2593  
    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 ?> 
Note: See TracChangeset for help on using the changeset viewer.

Sites map