mirror of
https://github.com/moparisthebest/wallabag
synced 2024-11-30 04:42:19 -05:00
Merge pull request #245 from NumEricR/themes-list
Avoid ".git" option in themes list of config page
This commit is contained in:
commit
8623a53200
@ -255,7 +255,7 @@ class Poche
|
|||||||
while (($theme = readdir($handle)) !== false) {
|
while (($theme = readdir($handle)) !== false) {
|
||||||
# Themes are stored in a directory, so all directory names are themes
|
# Themes are stored in a directory, so all directory names are themes
|
||||||
# @todo move theme installation data to database
|
# @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;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user