Fix when no theme set in config file
authorJulien Rouhaud <julien.rouhaud@free.fr>
Fri, 17 Aug 2012 09:00:27 +0000 (11:00 +0200)
committerJulien Rouhaud <julien.rouhaud@free.fr>
Fri, 17 Aug 2012 09:00:27 +0000 (11:00 +0200)
libraries/lib.inc.php

index 1119fc239e12e88009fe63fa2aaf18556cb90afa..568ca991a123be01933c837498357003155df573 100644 (file)
@@ -95,6 +95,8 @@
 
        /* select the theme */
        unset($_theme);
+       if (!isset($conf['theme']))
+               $conf['theme'] = 'default';
 
        // 1. Check for the theme from a request var
        if (isset($_REQUEST['theme']) && is_file("./themes/{$_REQUEST['theme']}/global.css")) {