]> git.mxchange.org Git - friendica-addons.git/blobdiff - catavatar/catavatar.php
Merge pull request #1288 from nupplaphil/feat/move_monolog
[friendica-addons.git] / catavatar / catavatar.php
index ce1fc78bc538b53d457bac4856c2f2e0698a931c..7a2bdc2eaf9623e5b15db868972f323a809dff45 100644 (file)
@@ -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;
        }