Changeset 5446 for trunk/include
- Timestamp:
- Mar 29, 2010, 3:30:02 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/template.class.php
r5434 r5446 95 95 $this->set_template_dir($root.'/'.$theme.'/'.$path); 96 96 97 include($root.'/'.$theme.'/themeconf.inc.php');97 $themeconf = $this->load_themeconf($root.'/'.$theme); 98 98 99 99 if (isset($themeconf['parent']) and $themeconf['parent'] != $theme) … … 574 574 return $source; 575 575 } 576 577 function load_themeconf($dir) 578 { 579 global $themeconfs, $conf, $page; 580 581 $dir = realpath($dir); 582 if (!isset($themeconfs[$dir])) 583 { 584 $themeconf = array(); 585 include($dir.'/themeconf.inc.php'); 586 // Put themeconf in cache 587 $themeconfs[$dir] = $themeconf; 588 } 589 return $themeconfs[$dir]; 590 } 576 591 } 577 592
Note: See TracChangeset
for help on using the changeset viewer.