From f7fe28d05997c501afc76031dad856ae5cae7cf9 Mon Sep 17 00:00:00 2001
From: Andrew Dolgov <noreply@fakecake.org>
Date: Fri, 24 Aug 2018 17:22:32 +0300
Subject: [PATCH] fix user theme ignoring active settings profile

---
 index.php | 2 +-
 prefs.php | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/index.php b/index.php
index 0280a0728..72ec23cd6 100644
--- a/index.php
+++ b/index.php
@@ -64,7 +64,7 @@
 	<?php echo stylesheet_tag("lib/dijit/themes/claro/claro.css"); ?>
 
 	<?php if ($_SESSION["uid"]) {
-		$theme = get_pref( "USER_CSS_THEME", $_SESSION["uid"], false);
+		$theme = get_pref("USER_CSS_THEME");
 		if ($theme && theme_valid("$theme")) {
 			echo stylesheet_tag(get_theme_path($theme));
 		} else {
diff --git a/prefs.php b/prefs.php
index 2b1270f10..d2da1fdca 100644
--- a/prefs.php
+++ b/prefs.php
@@ -40,7 +40,7 @@
 	<?php echo stylesheet_tag("lib/dijit/themes/claro/claro.css"); ?>
 
 	<?php if ($_SESSION["uid"]) {
-		$theme = get_pref( "USER_CSS_THEME", $_SESSION["uid"], false);
+		$theme = get_pref("USER_CSS_THEME");
 		if ($theme && theme_valid("$theme")) {
 			echo stylesheet_tag(get_theme_path($theme));
 		} else {
-- 
GitLab