<?php
/***************************************************************************
- * Copyright (C) 2003-2008 Polytechnique.org *
+ * Copyright (C) 2003-2010 Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
/** Fetch the feed for the given user.
*/
- abstract protected function fetch($user);
+ abstract protected function fetch(PlUser &$user);
public function next()
{
$user = Platal::session()->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);