mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-08 08:34:27 +02:00
Remove direct calls to App->user
This commit is contained in:
parent
266ee26240
commit
fc283ab928
51 changed files with 238 additions and 166 deletions
|
@ -60,10 +60,10 @@ class Bookmarklet extends BaseModule
|
|||
|
||||
$x = [
|
||||
'is_owner' => true,
|
||||
'allow_location' => $app->user['allow_location'],
|
||||
'default_location' => $app->user['default-location'],
|
||||
'nickname' => $app->user['nickname'],
|
||||
'lockstate' => ((is_array($app->user) && ((strlen($app->user['allow_cid'])) || (strlen($app->user['allow_gid'])) || (strlen($app->user['deny_cid'])) || (strlen($app->user['deny_gid'])))) ? 'lock' : 'unlock'),
|
||||
'allow_location' => $app->getUserValue('allow_location'),
|
||||
'default_location' => $app->getUserValue('default-location'),
|
||||
'nickname' => $app->getNickname(),
|
||||
'lockstate' => ACL::getLockstateForUserId($app->getUserId()) ? 'lock' : 'unlock',
|
||||
'default_perms' => ACL::getDefaultUserPermissions($app->user),
|
||||
'acl' => ACL::getFullSelectorHTML(DI::page(), $app->user, true),
|
||||
'bang' => '',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue