]> git.mxchange.org Git - friendica.git/blobdiff - mod/events.php
Revert Photo::getImageDataForPhoto return-type change
[friendica.git] / mod / events.php
index 67666d670c977317d165009889dbfe1046993d7e..ebb7d3f114649f045fd4ab3c737625644fd31345 100644 (file)
@@ -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 = '';
                }