From 3cc22aab829f339ac6e1ce1af63d646efe4a227c Mon Sep 17 00:00:00 2001 From: NumEricR Date: Thu, 26 Sep 2013 23:37:07 +0200 Subject: [PATCH] Avoid ".git" option in themes list of config page --- 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 561de808..1bae2751 100644 --- a/inc/poche/Poche.class.php +++ b/inc/poche/Poche.class.php @@ -255,7 +255,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('..', '.'))) { + if (! is_dir(THEME . '/' . $theme) || in_array($theme, array('..', '.', '.git'))) { continue; } -- 2.41.0