class Contacts extends BaseModule
{
- public static function content(array $parameters = [])
+ public function content(): string
{
$app = DI::app();
throw new HTTPException\ForbiddenException();
}
- $cid = $parameters['id'];
- $type = $parameters['type'] ?? 'all';
+ $cid = $this->parameters['id'];
+ $type = $this->parameters['type'] ?? 'all';
$accounttype = $_GET['accounttype'] ?? '';
$accounttypeid = User::getAccountTypeByString($accounttype);
$localContactId = Model\Contact::getPublicIdByUserId(local_user());
- Model\Profile::load($app, '', $contact);
+ DI::page()['aside'] = Widget\VCard::getHTML($contact);
$condition = [
'blocked' => false,