Uses user's visibility limitations to display vcards (Closes #1478).
[platal.git] / modules / epletter.php
index 9907260..ac4ef72 100644 (file)
@@ -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()) {