]> git.mxchange.org Git - friendica.git/blobdiff - mod/notice.php
Move mod/home to src/Module/Home
[friendica.git] / mod / notice.php
index 1a584000c72d86eee8560391b8c6ad910033bdf9..b0a6a543912d71e656ed0b403695a293b4654fa7 100644 (file)
@@ -16,8 +16,7 @@ function notice_init(App $a)
                $nick = $r[0]['nickname'];
                $a->internalRedirect('display/' . $nick . '/' . $id);
        } else {
-               $a->error = 404;
-               notice(L10n::t('Item not found.') . EOL);
+               throw new \Friendica\Network\HTTPException\NotFoundException(L10n::t('Item not found.'));
        }
 
        return;