From 89812ec81cf77af32942d151372a8667c716fe30 Mon Sep 17 00:00:00 2001 From: NumEricR Date: Sat, 5 Oct 2013 10:52:08 +0200 Subject: [PATCH 1/2] Remove useless filter on .git folder --- inc/poche/Poche.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/poche/Poche.class.php b/inc/poche/Poche.class.php index 1ba8e7c..1a65538 100644 --- a/inc/poche/Poche.class.php +++ b/inc/poche/Poche.class.php @@ -258,7 +258,7 @@ class Poche while (($theme = readdir($handle)) !== false) { # Themes are stored in a directory, so all directory names are themes # @todo move theme installation data to database - if (! is_dir(THEME . '/' . $theme) || in_array($theme, array('..', '.', '.git'))) { + if (! is_dir(THEME . '/' . $theme) || in_array($theme, array('..', '.'))) { continue; } From 2287bf06f533e1dc03979d3945af098601963712 Mon Sep 17 00:00:00 2001 From: NumEricR Date: Sat, 5 Oct 2013 11:03:41 +0200 Subject: [PATCH 2/2] Sort themes alphabetically in config list --- inc/poche/Poche.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/inc/poche/Poche.class.php b/inc/poche/Poche.class.php index 1a65538..6325adc 100644 --- a/inc/poche/Poche.class.php +++ b/inc/poche/Poche.class.php @@ -271,6 +271,7 @@ class Poche $themes[] = array('name' => $theme, 'current' => $current); } + sort($themes); return $themes; }