diff --git a/include/functions2.php b/include/functions2.php
index 57475183aae0b08031a98521a60f3826d8f321a7..2cf4af22e22a71ce4ee23ec0e5392961b4db746b 100644
--- a/include/functions2.php
+++ b/include/functions2.php
@@ -17,6 +17,7 @@
 		$params["default_view_order_by"] = get_pref("_DEFAULT_VIEW_ORDER_BY");
 		$params["bw_limit"] = (int) $_SESSION["bw_limit"];
 		$params["label_base_index"] = (int) LABEL_BASE_INDEX;
+		$params["theme"] = get_pref("USER_CSS_THEME", false, false);
 
 		$params["php_platform"] = PHP_OS;
 		$params["php_version"] = PHP_VERSION;