From 5aa58639e16df41e6df5d3eeb6b6bb58247fd147 Mon Sep 17 00:00:00 2001 From: Florent Bruneau Date: Sun, 28 Oct 2007 19:11:34 +0100 Subject: [PATCH] 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 --- classes/platalpage.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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')) { -- 2.1.4