summaryrefslogtreecommitdiff
path: root/theme.inc
diff options
context:
space:
mode:
Diffstat (limited to 'theme.inc')
-rw-r--r--theme.inc10
1 files changed, 2 insertions, 8 deletions
diff --git a/theme.inc b/theme.inc
index eedf5e2bb..9d0b5a0a6 100644
--- a/theme.inc
+++ b/theme.inc
@@ -1,17 +1,11 @@
<?
include "config.inc";
+include "function.inc";
include "template.inc";
global $user;
-if ($user->theme && file_exists($themes[$user->theme][0])) {
- include $themes[$user->theme][0];
-}
-else {
- include $themes[key($themes)][0];
-}
-
-$theme = new Theme();
+$theme = load_theme();
?> \ No newline at end of file