and backport :3

git-svn-id: file:///home/shish/svn/shimmie2/branches/branch_2.2@1108 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
shish 2008-11-07 14:30:02 +00:00
parent e85ec99c27
commit d26fba7faf

View File

@ -173,13 +173,15 @@ function _count_execs($db, $sql, $inputarray) {
$null = null; return $null;
}
function get_theme_object($file, $class) {
function get_theme_object($file, $class, $fatal=true) {
if(class_exists("Custom$class")) {
$class = "Custom$class";
return new $class();
}
else {
elseif ($fatal || class_exists("{$base}Theme")) {
return new $class();
} else {
return false;
}
}