]> git.mxchange.org Git - friendica.git/blobdiff - mod/cal.php
Merge pull request #12025 from annando/no-boot-src-module
[friendica.git] / mod / cal.php
index ec6df1f165e89630f9a8d9322dd143a6a3e98d33..ef2063d0a98f51cb6eada5e0607ba585d049e7d1 100644 (file)
@@ -116,7 +116,7 @@ function cal_content(App $a)
 
        $remote_contact = $contact_id && DBA::exists('contact', ['id' => $contact_id, 'uid' => $owner['uid']]);
 
-       $is_owner = local_user() == $owner['uid'];
+       $is_owner = Session::getLocalUser() == $owner['uid'];
 
        if ($owner['hidewall'] && !$is_owner && !$remote_contact) {
                DI::sysmsg()->addNotice(DI::l10n()->t('Access to this profile has been restricted.'));
@@ -278,7 +278,7 @@ function cal_content(App $a)
 
                        // If it the own calendar return to the events page
                        // otherwise to the profile calendar page
-                       if (local_user() === $owner_uid) {
+                       if (Session::getLocalUser() === $owner_uid) {
                                $return_path = "events";
                        } else {
                                $return_path = "cal/" . $nick;