use Friendica\App;
use Friendica\Core\L10n;
-use Friendica\Core\System;
use Friendica\Database\DBA;
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;