X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fevents.php;h=ebb7d3f114649f045fd4ab3c737625644fd31345;hb=eb035771f118e1f289f2ebbbb8a474aa2765c81e;hp=67666d670c977317d165009889dbfe1046993d7e;hpb=c52b8595e84fb2ea3b642b68586d9c9d35561f51;p=friendica.git diff --git a/mod/events.php b/mod/events.php index 67666d670c..ebb7d3f114 100644 --- a/mod/events.php +++ b/mod/events.php @@ -255,7 +255,7 @@ function events_content(App $a) ); } - if ($a->theme_info['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_info['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 = ''; }