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:
friendica 2014-02-17 20:38:30 -08:00
parent 309ae2d1e4
commit 0b4aa5a39c

View File

@ -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;
}