aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-02-17 20:38:30 -0800
committerfriendica <info@friendica.com>2014-02-17 20:38:30 -0800
commit0b4aa5a39c6cef862b4fbcbc71771f4931a4bc68 (patch)
treeabc5828ad5c26db183c37a3d0d91602cb0ac499a
parent309ae2d1e4d54e4940cd619ae4937f710a75b1ca (diff)
downloadvolse-hubzilla-0b4aa5a39c6cef862b4fbcbc71771f4931a4bc68.tar.gz
volse-hubzilla-0b4aa5a39c6cef862b4fbcbc71771f4931a4bc68.tar.bz2
volse-hubzilla-0b4aa5a39c6cef862b4fbcbc71771f4931a4bc68.zip
get_theme_uid() - if no uid, look for a system channel and use that. This allows default theme/scheme tweaks at the server level.
-rw-r--r--include/identity.php5
1 files changed, 5 insertions, 0 deletions
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;
}