Remove "notice" with new function
This commit is contained in:
parent
57e9404729
commit
897dbb30cf
10 changed files with 21 additions and 21 deletions
|
@ -74,7 +74,7 @@ function catavatar_addon_settings_post(App $a, &$s)
|
|||
|
||||
$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;
|
||||
}
|
||||
|
||||
|
@ -83,7 +83,7 @@ function catavatar_addon_settings_post(App $a, &$s)
|
|||
$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;
|
||||
}
|
||||
|
||||
|
@ -99,7 +99,7 @@ function catavatar_addon_settings_post(App $a, &$s)
|
|||
// Update global directory in background
|
||||
Profile::publishUpdate(local_user());
|
||||
|
||||
info(DI::l10n()->t('Meow!'));
|
||||
DI::sysmsg()->addInfo(DI::l10n()->t('Meow!'));
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue