Chore: Optimized saving of "navbar_type" in session and cookies (index.php)

This commit is contained in:
IgorA100 authored and GitHub committed 2026-03-01 22:36:28 +03:00
1 parent a61b8ffefd
commit ae148db5ac
1 file changed
+3 -8
+3 -8
View File
@@ -178,14 +178,9 @@ if (
zm_setcookie('zmCSS', $css);
}
if (
!isset($_SESSION['navbar_type']) ||
isset($_REQUEST['navbar_type']) ||
!isset($_COOKIE['zmNavbar_type']) ||
($_COOKIE['zmNavbar_type'] != $navbar_type)
) {
$_SESSION['navbar_type'] = $navbar_type;
zm_setcookie('zmNavbar_type', $navbar_type);
if (!defined('ZM_FORCE_NAVBAR_TYPE')) {
if($_COOKIE['zmNavbar_type'] != $navbar_type) zm_setcookie('zmNavbar_type', $navbar_type);
if($_SESSION['navbar_type'] != $navbar_type) $_SESSION['navbar_type'] = $navbar_type;
}
# Add Cross domain access headers