as of php 5.2.5, no custom themelets = false, not array of length zero -_-
git-svn-id: file:///home/shish/svn/shimmie2/trunk@668 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
parent
f580a8f922
commit
06aa7a266c
1 changed files with 4 additions and 1 deletions
|
@ -47,7 +47,10 @@ if(!file_exists("themes/$_theme")) $_theme = "default";
|
|||
require_once "themes/$_theme/page.class.php";
|
||||
require_once "themes/$_theme/layout.class.php";
|
||||
require_once "themes/$_theme/themelet.class.php";
|
||||
$themelets = array_merge(glob("ext/*/theme.php"), glob("themes/$_theme/*.theme.php"));
|
||||
|
||||
$themelets = glob("ext/*/theme.php");
|
||||
$custom_themelets = glob("themes/$_theme/*.theme.php");
|
||||
if($custom_themelets) $themelets = array_merge($themelets, $custom_themelets);
|
||||
foreach($themelets as $filename) {
|
||||
require_once $filename;
|
||||
}
|
||||
|
|
Reference in a new issue