mirror of
https://github.com/wallabag/wallabag.git
synced 2024-12-23 08:06:33 +00:00
Merge pull request #274 from NumEricR/select-theme
Update select theme filter and sort names (dev branch PR)
This commit is contained in:
commit
e557b7bb44
1 changed files with 2 additions and 1 deletions
|
@ -275,7 +275,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;
|
||||
}
|
||||
|
||||
|
@ -288,6 +288,7 @@ class Poche
|
|||
$themes[] = array('name' => $theme, 'current' => $current);
|
||||
}
|
||||
|
||||
sort($themes);
|
||||
return $themes;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue