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.

This commit is contained in:
friendica
2013-07-16 22:48:05 -07:00
parent 6d447ace5c
commit 4c30cddbfc
4 changed files with 36 additions and 15 deletions

View File

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