aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--inc/poche/Poche.class.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/inc/poche/Poche.class.php b/inc/poche/Poche.class.php
index 5299e374..806da54b 100644
--- a/inc/poche/Poche.class.php
+++ b/inc/poche/Poche.class.php
@@ -275,7 +275,7 @@ class Poche
275 while (($theme = readdir($handle)) !== false) { 275 while (($theme = readdir($handle)) !== false) {
276 # Themes are stored in a directory, so all directory names are themes 276 # Themes are stored in a directory, so all directory names are themes
277 # @todo move theme installation data to database 277 # @todo move theme installation data to database
278 if (! is_dir(THEME . '/' . $theme) || in_array($theme, array('..', '.', '.git'))) { 278 if (! is_dir(THEME . '/' . $theme) || in_array($theme, array('..', '.'))) {
279 continue; 279 continue;
280 } 280 }
281 281
@@ -288,6 +288,7 @@ class Poche
288 $themes[] = array('name' => $theme, 'current' => $current); 288 $themes[] = array('name' => $theme, 'current' => $current);
289 } 289 }
290 290
291 sort($themes);
291 return $themes; 292 return $themes;
292 } 293 }
293 294