]> git.mxchange.org Git - friendica.git/blobdiff - mod/notice.php
Renamed System::redirect() to $a->redirect()
[friendica.git] / mod / notice.php
index 133fd22fce242024001ac4015c193998411c9d6f..199c6d1b5d59dff1eeec553de8e6a8c271e4167f 100644 (file)
@@ -15,8 +15,7 @@ function notice_init(App $a)
        $r = q("SELECT `user`.`nickname` FROM `user` LEFT JOIN `item` ON `item`.`uid` = `user`.`uid` WHERE `item`.`id` = %d", intval($id));
        if (DBA::isResult($r)) {
                $nick = $r[0]['nickname'];
-               $url = System::baseUrl() . "/display/$nick/$id";
-               goaway($url);
+               $a->redirect('display/' . $nick . '/' . $id);
        } else {
                $a->error = 404;
                notice(L10n::t('Item not found.') . EOL);