Don't hide emails for connected user.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Sun, 28 Oct 2007 18:11:34 +0000 (19:11 +0100)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Sun, 28 Oct 2007 18:11:34 +0000 (19:11 +0100)
This causes a large speedup for pages with a lot of emails (ML, banana...)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
classes/platalpage.php

index dc9358e..36cbb48 100644 (file)
@@ -124,7 +124,9 @@ abstract class PlatalPage extends Smarty
             $this->register_modifier('escape_html', 'escape_html');
             $this->default_modifiers = Array('@escape_html');
         }
-        $this->register_outputfilter('hide_emails');
+        if (S::i('auth') <= AUTH_PUBLIC) {
+            $this->register_outputfilter('hide_emails');
+        }
         $this->addJsLink('wiki.js');
         header("Accept-Charset: utf-8");
         if (Env::v('forceXml')) {