X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-theme_edit.php;h=cf103df5d2938b6670793e1aaf45033e3c3f6aae;hp=9246c4bf46228ecd8f73fc7abd0121115e1c7871;hb=b5912168d72ae511eb623c3d92540c82d31b93c5;hpb=75ad748a68473ace540251427a74fb781b1145e9 diff --git a/inc/modules/admin/what-theme_edit.php b/inc/modules/admin/what-theme_edit.php index 9246c4bf46..cf103df5d2 100644 --- a/inc/modules/admin/what-theme_edit.php +++ b/inc/modules/admin/what-theme_edit.php @@ -55,7 +55,7 @@ if ($SEL > 0) if (isset($_POST['status'])) { // Change status - if ($_POST['active'][$id] == "Y") + if ($_POST['active'][$id] == 'Y') { $SQL = "UPDATE "._MYSQL_PREFIX."_themes SET theme_active='N' WHERE id='".$id."' LIMIT 1"; } @@ -83,9 +83,9 @@ if ($SEL > 0) { // Save theme $POST['default_theme'] = $_GET['default_theme']; - @setcookie("mxchange_theme", $POST['default_theme'], (time() + 60*60*24*365), COOKIE_PATH); - $_COOKIE['mxchange_theme'] = $POST['default_theme']; - ADMIN_SAVE_SETTINGS($POST, "_config", "config='0'"); + set_session("mxchange_theme", $POST['default_theme'], (time() + 60*60*24*365), COOKIE_PATH); + $_SESSION['mxchange_theme'] = $POST['default_theme']; + ADMIN_SAVE_SETTINGS($POST); } // Switch to testing mode