1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2026-01-06 10:19:16 +00:00

support loading themes from themes.local

This commit is contained in:
Andrew Dolgov
2015-06-05 18:08:19 +03:00
parent 7c0a2ab202
commit b9634eb8b8
6 changed files with 20 additions and 8 deletions

View File

@@ -570,8 +570,10 @@ class Pref_Prefs extends Handler_Protected {
} else if ($pref_name == "USER_CSS_THEME") {
$themes = array_filter(array_map("basename", glob("themes/*.css")),
"theme_valid");
$themes = array_merge(glob("themes/*.css"), glob("themes.local/*.css"));
$themes = array_map("basename", $themes);
$themes = array_filter($themes, "theme_valid");
asort($themes);
print_select($pref_name, $value, $themes,
'dojoType="dijit.form.Select"');