]> git.mxchange.org Git - friendica.git/blobdiff - mod/cal.php
Set CORS header fields to support Halcyon
[friendica.git] / mod / cal.php
index aa38fa658203799dd018863144bd4c225ba3c8ad..f3ff80cf99b3239d4cd8d5689f548a63c3acbdf1 100644 (file)
@@ -67,7 +67,7 @@ function cal_init(App $a)
                return;
        }
 
-       $a->profile = Profile::getByNickname($nick, $a->profile_uid);
+       $a->profile = Profile::getByNickname($nick);
        if (empty($a->profile)) {
                throw new HTTPException\NotFoundException(DI::l10n()->t('User not found.'));
        }
@@ -84,7 +84,7 @@ function cal_init(App $a)
                '$about' => BBCode::convert($a->profile['about']),
        ]);
 
-       $cal_widget = Widget\CalendarExport::getHTML();
+       $cal_widget = Widget\CalendarExport::getHTML($user['uid']);
 
        if (empty(DI::page()['aside'])) {
                DI::page()['aside'] = '';