summaryrefslogtreecommitdiffstats
path: root/lib/themes.php
diff options
context:
space:
mode:
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