1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 13:45:56 +00:00

remove theme supports-version etc checking

This commit is contained in:
Andrew Dolgov
2018-12-09 11:37:26 +03:00
parent b2c079893b
commit 703351c79e
4 changed files with 7 additions and 26 deletions

View File

@@ -552,10 +552,10 @@ class Pref_Prefs extends Handler_Protected {
$themes = array_merge(glob("themes/*.php"), glob("themes/*.css"), glob("themes.local/*.css"));
$themes = array_map("basename", $themes);
$themes = array_filter($themes, "theme_valid");
$themes = array_filter($themes, "theme_exists");
asort($themes);
if (!theme_valid($value)) $value = "default.php";
if (!theme_exists($value)) $value = "default.php";
print "<select name='$pref_name' id='$pref_name' dojoType='dijit.form.Select'>";