diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-04-23 07:31:05 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-04-23 07:31:05 +0000 |
commit | a31560aec4f004e58930277758f5412d86c62adc (patch) | |
tree | 845ff6947d26b22a0f4527901dbefc97bca89d78 /lib/themes.php | |
parent | 8b27d66add7ca9ba57d7e9488612cb54be4b11c1 (diff) | |
download | ampache-a31560aec4f004e58930277758f5412d86c62adc.tar.gz ampache-a31560aec4f004e58930277758f5412d86c62adc.tar.bz2 ampache-a31560aec4f004e58930277758f5412d86c62adc.zip |
it technically logs in and streams.. but thats it, complete rewrite almost everything broken
Diffstat (limited to 'lib/themes.php')
-rw-r--r-- | lib/themes.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/themes.php b/lib/themes.php index 1ce57dae..f2f27740 100644 --- a/lib/themes.php +++ b/lib/themes.php @@ -68,8 +68,8 @@ function get_theme($name) { if (strlen($name) < 1) { return false; } - $config_file = conf('prefix') . "/themes/" . $name . "/theme.cfg.php"; - $results = read_config($config_file); + $config_file = Config::get('prefix') . "/themes/" . $name . "/theme.cfg.php"; + $results = parse_ini_file($config_file); $results['path'] = $name; return $results; @@ -116,9 +116,9 @@ function set_theme_colors($theme_name,$user_id) { */ function set_theme() { - if (strlen(conf('theme_name')) > 0) { - $theme_path = "/themes/" . conf('theme_name'); - conf(array('theme_path'=>$theme_path),1); + if (strlen(Config::get('theme_name')) > 0) { + $theme_path = "/themes/" . Config::get('theme_name'); + Config::set(array('theme_path'=>$theme_path),1); } } // set_theme |