Changeset 5446 for trunk/include/template.class.php
- Timestamp:
- 03/29/10 15:30:02 (3 years ago)
- Files:
-
- 1 modified
-
trunk/include/template.class.php (modified) (2 diffs)
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
![(please configure the [header_logo] section in trac.ini)](http://piwigo.org/screenshots/piwigo_logo_on_white.png)