get_theme_uid() - if no uid, look for a system channel and use that. This allows default theme/scheme tweaks at the server level.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user