X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fepletter.php;h=ac4ef72516b0d3ebd771d113c0f0e157761cc0be;hb=911075226546c6b058eca1e0b889097f79fa6232;hp=99072604a82b14f76e347a0a02fc928aa8005855;hpb=956cd5c10a027f75283d91545a5d5feeed1874ef;p=platal.git diff --git a/modules/epletter.php b/modules/epletter.php index 9907260..ac4ef72 100644 --- a/modules/epletter.php +++ b/modules/epletter.php @@ -26,12 +26,13 @@ class EPLetterModule extends NewsletterModule function handlers() { return array( - 'epletter' => $this->make_hook('nl', AUTH_COOKIE), - 'epletter/out' => $this->make_hook('out', AUTH_PUBLIC), - 'epletter/show' => $this->make_hook('nl_show', AUTH_COOKIE), - 'epletter/admin' => $this->make_hook('admin_nl', AUTH_MDP), - 'epletter/admin/edit' => $this->make_hook('admin_nl_edit', AUTH_MDP), - 'epletter/admin/edit/valid' => $this->make_hook('admin_nl_valid', AUTH_MDP), + 'epletter' => $this->make_hook('nl', AUTH_COOKIE), + 'epletter/out' => $this->make_hook('out', AUTH_PUBLIC), + 'epletter/show' => $this->make_hook('nl_show', AUTH_COOKIE), + 'epletter/search' => $this->make_hook('nl_search', AUTH_COOKIE), + 'epletter/admin' => $this->make_hook('admin_nl', AUTH_MDP), + 'epletter/admin/edit' => $this->make_hook('admin_nl_edit', AUTH_MDP), + 'epletter/admin/edit/valid' => $this->make_hook('admin_nl_valid', AUTH_MDP), 'epletter/admin/edit/cancel' => $this->make_hook('admin_nl_cancel', AUTH_MDP), 'epletter/admin/edit/delete' => $this->make_hook('admin_nl_delete', AUTH_MDP), ); @@ -43,7 +44,7 @@ class EPLetterModule extends NewsletterModule return NewsLetter::forGroup(NewsLetter::GROUP_EP); } - function handler_out(&$page, $hash = null) + function handler_out($page, $hash = null) { if (!$hash) { if (!S::logged()) {