]> git.mxchange.org Git - friendica.git/blobdiff - mod/editpost.php
Replace "notice" calls
[friendica.git] / mod / editpost.php
index 3fb8c80ec0510bff5c09260ea8115c684f4ff7f1..8d2160fde059af098008429707ee8c75c6f15dd3 100644 (file)
@@ -35,14 +35,14 @@ function editpost_content(App $a)
        $o = '';
 
        if (!local_user()) {
-               notice(DI::l10n()->t('Permission denied.'));
+               DI::sysmsg()->addNotice(DI::l10n()->t('Permission denied.'));
                return;
        }
 
        $post_id = ((DI::args()->getArgc() > 1) ? intval(DI::args()->getArgv()[1]) : 0);
 
        if (!$post_id) {
-               notice(DI::l10n()->t('Item not found'));
+               DI::sysmsg()->addNotice(DI::l10n()->t('Item not found'));
                return;
        }
 
@@ -52,7 +52,7 @@ function editpost_content(App $a)
        $item = Post::selectFirstForUser(local_user(), $fields, ['id' => $post_id, 'uid' => local_user()]);
 
        if (!DBA::isResult($item)) {
-               notice(DI::l10n()->t('Item not found'));
+               DI::sysmsg()->addNotice(DI::l10n()->t('Item not found'));
                return;
        }