$self = DBA::selectFirst('contact', ['id'], ['uid' => local_user(), 'self' => true]);
if (!DBA::isResult($self)) {
- notice(DI::l10n()->t("The cat hadn't found itself."));
+ DI::sysmsg()->addNotice(DI::l10n()->t("The cat hadn't found itself."));
return;
}
$condition = ['uid' => local_user(), 'contact-id' => $self['id']];
$photo = DBA::selectFirst('photo', ['resource-id'], $condition);
if (!DBA::isResult($photo)) {
- notice(DI::l10n()->t('There was an error, the cat ran away.'));
+ DI::sysmsg()->addNotice(DI::l10n()->t('There was an error, the cat ran away.'));
return;
}
// Update global directory in background
Profile::publishUpdate(local_user());
- info(DI::l10n()->t('Meow!'));
+ DI::sysmsg()->addInfo(DI::l10n()->t('Meow!'));
return;
}