aboutsummaryrefslogtreecommitdiffstats
path: root/admin/include/themes.class.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--admin/include/themes.class.php14
1 files changed, 3 insertions, 11 deletions
diff --git a/admin/include/themes.class.php b/admin/include/themes.class.php
index 824ccf4b9..5389eef58 100644
--- a/admin/include/themes.class.php
+++ b/admin/include/themes.class.php
@@ -86,19 +86,11 @@ class themes
if (class_exists($classname))
{
- $theme_maintain = new $classname($theme_id);
- }
- else
- {
- $theme_maintain = new DummyTheme_maintain($theme_id);
+ return new $classname($theme_id);
}
}
- else
- {
- $theme_maintain = new DummyTheme_maintain($theme_id);
- }
-
- return $theme_maintain;
+
+ return new DummyTheme_maintain($theme_id);
}
/**