From 223143ed3a95ad59ff2945f6746da73992012354 Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Thu, 28 Dec 2006 02:44:31 +0000 Subject: fixed display of now playing and fixed ordering of themes in preferences --- lib/themes.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/themes.php') diff --git a/lib/themes.php b/lib/themes.php index 5b1101b2..1ce57dae 100644 --- a/lib/themes.php +++ b/lib/themes.php @@ -46,11 +46,15 @@ function get_themes() { /* Open the theme.cfg.php file */ $r = read_config($config_file); $r['path'] = $file; - $results[] = $r; + $name = $r['name']; + $results[$name] = $r; } } // end while directory + // Sort by the theme name + ksort($results); + return $results; } // get_themes -- cgit