summaryrefslogtreecommitdiffstats
path: root/lib/preferences.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/preferences.php')
-rw-r--r--lib/preferences.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/preferences.php b/lib/preferences.php
index ac8c9e50..6b603863 100644
--- a/lib/preferences.php
+++ b/lib/preferences.php
@@ -439,9 +439,15 @@ function init_preferences() {
} // end while
/* Set the Theme mojo */
- if (strlen($results['theme_name']) > 0) {
+ if (strlen($results['theme']) > 0) {
$results['theme_path'] = '/themes/' . $results['theme_name'];
}
+ // Default to the classic theme if we don't get anything from their
+ // preferenecs because we're going to want at least something otherwise
+ // the page is going to be really ugly
+ else {
+ $results['theme_path'] = '/themes/classic';
+ }
Config::set_by_array($results,1);