X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fevents.php;h=ebb7d3f114649f045fd4ab3c737625644fd31345;hb=8b450be09bacada8e4ae96079065783bbdacdf5b;hp=aac12756edc34bf12d52a55a002d24dacd03656d;hpb=0c0abd923822994d808273ed60c149d34b49a76f;p=friendica.git diff --git a/mod/events.php b/mod/events.php index aac12756ed..ebb7d3f114 100644 --- a/mod/events.php +++ b/mod/events.php @@ -255,7 +255,7 @@ function events_content(App $a) ); } - if ($a->theme_events_in_profile) { + if ($a->getThemeInfoValue('events_in_profile')) { Nav::setSelected('home'); } else { Nav::setSelected('events'); @@ -279,8 +279,8 @@ function events_content(App $a) $o = ''; $tabs = ''; // tabs - if ($a->theme_events_in_profile) { - $tabs = BaseProfile::getTabsHTML($a, 'events', true, $a->user); + if ($a->getThemeInfoValue('events_in_profile')) { + $tabs = BaseProfile::getTabsHTML($a, 'events', true, $a->getLoggedInUserNickname(), false); } $mode = 'view'; @@ -513,7 +513,7 @@ function events_content(App $a) $fminute = !empty($orig_event) ? DateTimeFormat::convert($fdt, $tz, 'UTC', 'i') : '00'; if (!$cid && in_array($mode, ['new', 'copy'])) { - $acl = ACL::getFullSelectorHTML(DI::page(), $a->user, false, ACL::getDefaultUserPermissions($orig_event)); + $acl = ACL::getFullSelectorHTML(DI::page(), $a->getLoggedInUserId(), false, ACL::getDefaultUserPermissions($orig_event)); } else { $acl = ''; }