diff --git a/admin/themeUpdate.json.php b/admin/themeUpdate.json.php index 8bf6ab829c..711b71222e 100644 --- a/admin/themeUpdate.json.php +++ b/admin/themeUpdate.json.php @@ -9,10 +9,19 @@ if (!User::isAdmin()) { forbiddenPage('Admin Only'); } +if(empty($_REQUEST['themeLight'])){ + $_REQUEST['themeLight'] = 'default'; +} + +if(empty($_REQUEST['themeDark'])){ + $_REQUEST['themeDark'] = 'netflix'; +} + + $config = new AVideoConf(); -if(!empty($_POST['theme'])){ - $config->setTheme($_POST['theme'], @$_REQUEST["defaultTheme"]); -}else if(!empty($_POST['themeLight'])){ +if(!empty($_REQUEST['theme'])){ + $config->setTheme($_REQUEST['theme'], @$_REQUEST["defaultTheme"]); +}else if(!empty($_REQUEST['themeLight'])){ $config->setThemes($_REQUEST["themeLight"], $_REQUEST["themeDark"], $_REQUEST["defaultTheme"]); } diff --git a/feed/rss.php b/feed/rss.php index e0acba8030..79e884dc9c 100644 --- a/feed/rss.php +++ b/feed/rss.php @@ -27,7 +27,7 @@ if (empty($feed)) { 1 en - no + false ]]>