X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=classes%2Fplfeed.php;h=d54199a6e35242d5f94c75985e834a15ecda6754;hb=f23d33e1b114e9032b4b966baebdeb14b4215313;hp=cd2d469f78f9d43c01d143788231ab0fea0186f2;hpb=9879250a1789b2b5819df3a11061ceb7307e3727;p=platal.git diff --git a/classes/plfeed.php b/classes/plfeed.php index cd2d469..d54199a 100644 --- a/classes/plfeed.php +++ b/classes/plfeed.php @@ -1,6 +1,6 @@ tokenAuth($login, $token); if (empty($user)) { if ($require_auth) { - $page->kill("Authentication required"); + return PL_FORBIDDEN; } else { $user = null; } } $page->assign('rss_hash', $token); - header('Content-Type: application/rss+xml; charset=utf8'); + pl_content_headers("application/rss+xml"); $this->iterator = $this->fetch($user); $page->coreTpl('feed.' . $type . '.tpl', NO_SKIN); $page->assign_by_ref('feed', $this);