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:
parent
309ae2d1e4
commit
0b4aa5a39c
@ -1104,6 +1104,11 @@ function get_theme_uid() {
|
|||||||
if(! $uid)
|
if(! $uid)
|
||||||
return local_user();
|
return local_user();
|
||||||
}
|
}
|
||||||
|
if(! $uid) {
|
||||||
|
$x = get_sys_channel();
|
||||||
|
if($x)
|
||||||
|
return $x['channel_id'];
|
||||||
|
}
|
||||||
return $uid;
|
return $uid;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user