aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc/poche/Poche.class.php
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas.loeuillet@gmail.com>2013-10-08 23:33:48 -0700
committerNicolas LÅ“uillet <nicolas.loeuillet@gmail.com>2013-10-08 23:33:48 -0700
commite557b7bb44d208315f4b9b2ea77a8a3f0fb0e386 (patch)
tree18f95bee2d77ea20e5332e95853f1c402c401601 /inc/poche/Poche.class.php
parent3ae9190e78e4ee341fe58a1243cd2ac388e29049 (diff)
parent2287bf06f533e1dc03979d3945af098601963712 (diff)
downloadwallabag-e557b7bb44d208315f4b9b2ea77a8a3f0fb0e386.tar.gz
wallabag-e557b7bb44d208315f4b9b2ea77a8a3f0fb0e386.tar.zst
wallabag-e557b7bb44d208315f4b9b2ea77a8a3f0fb0e386.zip
Merge pull request #274 from NumEricR/select-theme
Update select theme filter and sort names (dev branch PR)
Diffstat (limited to 'inc/poche/Poche.class.php')
-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