aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc/poche
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas.loeuillet@gmail.com>2013-10-10 14:07:13 +0200
committerNicolas LÅ“uillet <nicolas.loeuillet@gmail.com>2013-10-10 14:07:13 +0200
commit0c994bd9349fd4c7f01dbbfef2be064e00c7f74e (patch)
treee19dc2b580926c33d4e57c20337ba726161e26d2 /inc/poche
parent18889e230a80b7c45b30036c86896e6a2f9cacf5 (diff)
parente557b7bb44d208315f4b9b2ea77a8a3f0fb0e386 (diff)
downloadwallabag-0c994bd9349fd4c7f01dbbfef2be064e00c7f74e.tar.gz
wallabag-0c994bd9349fd4c7f01dbbfef2be064e00c7f74e.tar.zst
wallabag-0c994bd9349fd4c7f01dbbfef2be064e00c7f74e.zip
Merge branch 'dev' of https://github.com/inthepoche/poche into dev
Diffstat (limited to 'inc/poche')
-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