diff options
author | friendica <info@friendica.com> | 2013-07-16 22:48:05 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-07-16 22:48:05 -0700 |
commit | 4c30cddbfc105c0ea60f30594b760633e654cb0c (patch) | |
tree | 127e412b5f6bb038de8758b9d227fd32204b83e4 /boot.php | |
parent | 6d447ace5c72e74145198ab1c3ebac2bf85d33cf (diff) | |
download | volse-hubzilla-4c30cddbfc105c0ea60f30594b760633e654cb0c.tar.gz volse-hubzilla-4c30cddbfc105c0ea60f30594b760633e654cb0c.tar.bz2 volse-hubzilla-4c30cddbfc105c0ea60f30594b760633e654cb0c.zip |
provide a controlling user for theme settings, not necessarily local_user() - can't test on my test site so moving into production and I'll debug it there.
Diffstat (limited to 'boot.php')
-rwxr-xr-x | boot.php | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -513,6 +513,9 @@ class App { public $account = null; // account record public $channel = null; // channel record public $observer = null; // xchan record + public $profile_uid = 0; // If applicable, the uid of the person whose stuff this is. + + private $perms = null; // observer permissions private $widgets = array(); // widgets for this page @@ -1533,7 +1536,7 @@ function profile_load(&$a, $nickname, $profile = '') { } $a->profile = $r[0]; - + $a->profile_uid = $r[0]['profile_uid']; $a->page['title'] = $a->profile['channel_name'] . " - " . $a->profile['channel_address'] . "@" . $a->get_hostname(); @@ -2339,3 +2342,7 @@ function head_get_icon() { $icon = z_root() . $icon; return $icon; } + +function get_controlling_channel_id() { + return get_app()->profile_uid; +} |