throw new NotFoundException(DI::l10n()->t('Contact not found'));
}
+ if ($cmd === 'posts') {
+ return self::getPostsHTML($a, $contact_id);
+ }
+
+ if ($cmd === 'conversations') {
+ return self::getConversationsHMTL($a, $contact_id, $update);
+ }
+
self::checkFormSecurityTokenRedirectOnError('contact/' . $contact_id, 'contact_action', 't');
$cdata = Model\Contact::getPublicAndUserContactID($orig_record['id'], local_user());
'$message' => DI::l10n()->t('Do you really want to delete this contact?'),
'$confirm' => DI::l10n()->t('Yes'),
'$confirm_url' => DI::args()->getCommand(),
- '$confirm_name' => 'confirmed',
+ '$confirm_name' => 't',
+ '$confirm_value' => BaseModule::getFormSecurityToken('contact_action'),
'$cancel' => DI::l10n()->t('Cancel'),
]);
}
DI::baseUrl()->redirect('contact');
// NOTREACHED
}
- if ($cmd === 'posts') {
- return self::getPostsHTML($a, $contact_id);
- }
- if ($cmd === 'conversations') {
- return self::getConversationsHMTL($a, $contact_id, $update);
- }
}
$_SESSION['return_path'] = DI::args()->getQueryString();