- $profile = Profile::getByNickname($nick, $a->profile_uid);
-
- $account_type = Contact::getAccountType($profile);
-
- $tpl = Renderer::getMarkupTemplate("widget/vcard.tpl");
-
- $vcard_widget = Renderer::replaceMacros($tpl, [
- '$name' => $profile['name'],
- '$photo' => $profile['photo'],
- '$addr' => (($profile['addr'] != "") ? $profile['addr'] : ""),
- '$account_type' => $account_type,
- '$pdesc' => (($profile['pdesc'] != "") ? $profile['pdesc'] : ""),
- ]);
-
- $cal_widget = Widget\CalendarExport::getHTML();
+ $owner = User::getOwnerDataByNick(DI::args()->getArgv()[1]);
+ if (empty($owner)) {
+ throw new HTTPException\NotFoundException(DI::l10n()->t('User not found.'));
+ }