diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-05-16 07:13:45 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-05-16 07:13:45 +0000 |
commit | cebb21facc2e2219f1d498def8ee19bbb4b72f7e (patch) | |
tree | 17c779f616c63ab8bc552ea2e4ce8a66a6f7e460 /lib/themes.php | |
parent | 8046e377bcb7a83b8966e7a2809b905071f7f08a (diff) | |
download | ampache-cebb21facc2e2219f1d498def8ee19bbb4b72f7e.tar.gz ampache-cebb21facc2e2219f1d498def8ee19bbb4b72f7e.tar.bz2 ampache-cebb21facc2e2219f1d498def8ee19bbb4b72f7e.zip |
fixed mpd timeout issues and a stupid little theme config load issue
Diffstat (limited to 'lib/themes.php')
-rw-r--r-- | lib/themes.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/themes.php b/lib/themes.php index 3c89a00a..5b1101b2 100644 --- a/lib/themes.php +++ b/lib/themes.php @@ -32,7 +32,7 @@ function get_themes() { $handle = @opendir(conf('prefix') . "/themes"); if (!is_resource($handle)) { - if (conf('debug')) { log_event($_SESSION['userdata']['username'],'theme',"Error unable to open Themes Directory"); } + debug_event('theme',"Error unable to open Themes Directory",'2'); } $results = array(); @@ -62,6 +62,8 @@ function get_themes() { */ function get_theme($name) { + if (strlen($name) < 1) { return false; } + $config_file = conf('prefix') . "/themes/" . $name . "/theme.cfg.php"; $results = read_config($config_file); $results['path'] = $name; |