From: Florent Bruneau Date: Sun, 28 Oct 2007 18:11:34 +0000 (+0100) Subject: Don't hide emails for connected user. X-Git-Tag: xorg/0.9.16~251 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=5aa58639e16df41e6df5d3eeb6b6bb58247fd147;p=platal.git Don't hide emails for connected user. This causes a large speedup for pages with a lot of emails (ML, banana...) Signed-off-by: Florent Bruneau --- diff --git a/classes/platalpage.php b/classes/platalpage.php index dc9358e..36cbb48 100644 --- a/classes/platalpage.php +++ b/classes/platalpage.php @@ -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')) {