X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fevents.php;h=96a80dddd34ab1cc4d68ec0248e56eefd2f05f3b;hb=f3bfd6c9a14b70736b9416a1892d7548e160880b;hp=989377d6d11aaafaa3fdceba5856f4cd699a1f8e;hpb=26ba053e75092d038f571b77eaf3005509da0648;p=platal.git diff --git a/modules/events.php b/modules/events.php index 989377d..96a80dd 100644 --- a/modules/events.php +++ b/modules/events.php @@ -25,11 +25,11 @@ class EventsModule extends PLModule { return array( 'events' => $this->make_hook('ev', AUTH_COOKIE), - 'rss' => $this->make_hook('rss', AUTH_PUBLIC, 'user', NO_HTTPS), 'events/preview' => $this->make_hook('preview', AUTH_PUBLIC, 'user', NO_AUTH), 'events/photo' => $this->make_hook('photo', AUTH_PUBLIC), 'events/submit' => $this->make_hook('ev_submit', AUTH_MDP), 'admin/events' => $this->make_hook('admin_events', AUTH_MDP, 'admin'), + 'rss' => $this->make_token_hook('rss', AUTH_COOKIE), 'ajax/tips' => $this->make_hook('tips', AUTH_COOKIE, 'user', NO_AUTH), 'admin/tips' => $this->make_hook('admin_tips', AUTH_MDP, 'admin'), @@ -228,11 +228,11 @@ class EventsModule extends PLModule exit; } - function handler_rss($page, $user = null, $hash = null) + function handler_rss(PlPage $page, PlUser $user) { $this->load('feed.inc.php'); $feed = new EventFeed(); - return $feed->run($page, $user, $hash); + return $feed->run($page, $user); } function handler_preview($page)