diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-12-28 02:44:31 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-12-28 02:44:31 +0000 |
commit | 223143ed3a95ad59ff2945f6746da73992012354 (patch) | |
tree | ea735da45550f98dbd6adc23f35df957ea13f84e /lib/themes.php | |
parent | 936c78c2b8f0e5fdeaea81e9758d277a90ea62ad (diff) | |
download | ampache-223143ed3a95ad59ff2945f6746da73992012354.tar.gz ampache-223143ed3a95ad59ff2945f6746da73992012354.tar.bz2 ampache-223143ed3a95ad59ff2945f6746da73992012354.zip |
fixed display of now playing and fixed ordering of themes in preferences
Diffstat (limited to 'lib/themes.php')
-rw-r--r-- | lib/themes.php | 6 |
1 files changed, 5 insertions, 1 deletions
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 |