summaryrefslogtreecommitdiffstats
path: root/lib/preferences.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-06-17 23:59:04 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-06-17 23:59:04 +0000
commit56c960c34a17746beeec455fc225428360d5d91d (patch)
tree85fae55dbb16f1c42109b85549f3853fd270ba7f /lib/preferences.php
parentb032ac027e531b992a62b1af5d19e865e28e8b7d (diff)
downloadampache-56c960c34a17746beeec455fc225428360d5d91d.tar.gz
ampache-56c960c34a17746beeec455fc225428360d5d91d.tar.bz2
ampache-56c960c34a17746beeec455fc225428360d5d91d.zip
fixed some issues with the installer, and also made it so that you can delete/disable users again
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);