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:
shish 2007-12-19 10:56:08 +00:00
parent f580a8f922
commit 06aa7a266c

View file

@ -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;
}