summaryrefslogtreecommitdiffstats
path: root/lib/themes.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/themes.php')
-rw-r--r--lib/themes.php10
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