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:
parent
e85ec99c27
commit
d26fba7faf
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user