summaryrefslogtreecommitdiffstats
path: root/lib/themes.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-12-28 02:44:31 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-12-28 02:44:31 +0000
commit223143ed3a95ad59ff2945f6746da73992012354 (patch)
treeea735da45550f98dbd6adc23f35df957ea13f84e /lib/themes.php
parent936c78c2b8f0e5fdeaea81e9758d277a90ea62ad (diff)
downloadampache-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.php6
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