]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Avoid ".git" option in themes list of config page 245/head
authorNumEricR <eric.github@gmail.com>
Thu, 26 Sep 2013 21:37:07 +0000 (23:37 +0200)
committerNumEricR <eric.github@gmail.com>
Thu, 26 Sep 2013 21:37:07 +0000 (23:37 +0200)
inc/poche/Poche.class.php

index 561de808d562b4938f9516770984203410adfbc7..1bae275185298133ae1b6228ecec63eda329dc31 100644 (file)
@@ -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;
             }