Bugfix: Messages when ignoring, blocking and archiving contacts now returns the correct messages.

This commit is contained in:
Michael Vogel 2014-09-03 01:03:23 +02:00
parent 7144d22cc1
commit dd908c8415

View file

@ -278,6 +278,7 @@ function contacts_content(&$a) {
if($cmd === 'block') {
$r = _contact_block($contact_id, $orig_record[0]);
if($r) {
$blocked = (($orig_record[0]['blocked']) ? 0 : 1);
info((($blocked) ? t('Contact has been blocked') : t('Contact has been unblocked')).EOL);
}
@ -288,6 +289,7 @@ function contacts_content(&$a) {
if($cmd === 'ignore') {
$r = _contact_ignore($contact_id, $orig_record[0]);
if($r) {
$readonly = (($orig_record[0]['readonly']) ? 0 : 1);
info((($readonly) ? t('Contact has been ignored') : t('Contact has been unignored')).EOL);
}
@ -299,6 +301,7 @@ function contacts_content(&$a) {
if($cmd === 'archive') {
$r = _contact_archive($contact_id, $orig_record[0]);
if($r) {
$archived = (($orig_record[0]['archive']) ? 0 : 1);
info((($archived) ? t('Contact has been archived') : t('Contact has been unarchived')).EOL);
}