mirror of
https://github.com/moparisthebest/wallabag
synced 2024-11-23 17:42:15 -05:00
Merge branch 'dev' of https://github.com/inthepoche/poche into dev
This commit is contained in:
commit
0c994bd934
@ -275,7 +275,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('..', '.', '.git'))) {
|
if (! is_dir(THEME . '/' . $theme) || in_array($theme, array('..', '.'))) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -288,6 +288,7 @@ class Poche
|
|||||||
$themes[] = array('name' => $theme, 'current' => $current);
|
$themes[] = array('name' => $theme, 'current' => $current);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sort($themes);
|
||||||
return $themes;
|
return $themes;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user