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:
9
boot.php
9
boot.php
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user