Merge branch 'master' of tsia/halcyon into master

This commit is contained in:
Niklas Poslovski 2018-10-17 14:38:15 +00:00 committed by Gogs
commit cee9252e51
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ include("language.php");
<link rel="shortcut icon" href="/assets/images/favicon.ico">
<link rel="gettext" type="text/x-gettext-translation" href="/locale/<?=$locale?>/LC_MESSAGES/messages.po">
<link rel="stylesheet" href="/assets/css/style.css" media="all">
<?php if($_COOKIE['darktheme'] == "true")
<?php if(array_key_exists('darktheme', $_COOKIE) && $_COOKIE['darktheme'] == "true")
echo '<link rel="stylesheet" href="/assets/css/dark.css" media="all">';
?>
<link rel="stylesheet" href="/assets/css/fontawesome.min.css" media="all">

View File

@ -35,7 +35,7 @@
</div>
<div class="dark_theme_wrap" style="float:left;width:50%">
<div class="switch">
<input type="checkbox" id="setting_dark_theme" <?php if($_COOKIE['darktheme'] == "true") echo "checked='checked'" ?>>
<input type="checkbox" id="setting_dark_theme" <?php if(array_key_exists('darktheme', $_COOKIE) && $_COOKIE['darktheme'] == "true") echo "checked='checked'" ?>>
<div class="switch-btn">
<span></span>
</div>