Avoid ".git" option in themes list of config page

This commit is contained in:
NumEricR 2013-09-26 23:37:07 +02:00
parent 92cd6e9af8
commit 3cc22aab82
1 changed files with 1 additions and 1 deletions

View 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;
}