From 0b4aa5a39c6cef862b4fbcbc71771f4931a4bc68 Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 17 Feb 2014 20:38:30 -0800 Subject: get_theme_uid() - if no uid, look for a system channel and use that. This allows default theme/scheme tweaks at the server level. --- include/identity.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/identity.php b/include/identity.php index 05a228abf..d83498a69 100644 --- a/include/identity.php +++ b/include/identity.php @@ -1104,6 +1104,11 @@ function get_theme_uid() { if(! $uid) return local_user(); } + if(! $uid) { + $x = get_sys_channel(); + if($x) + return $x['channel_id']; + } return $uid; } -- cgit v1.2.3