X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=classes%2Fplatalpage.php;h=f3661d72c8ad0f59323084e92b0c496de8f37a6c;hb=6e5c3f8ed52cdcea9d8639a94d4378255068d799;hp=42b6fcd9edb02bf4618c86d2d8f1012335a5544a;hpb=908db125b895b963213e75c16d6428d36e866b04;p=platal.git
diff --git a/classes/platalpage.php b/classes/platalpage.php
index 42b6fcd..f3661d7 100644
--- a/classes/platalpage.php
+++ b/classes/platalpage.php
@@ -1,6 +1,6 @@
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')) {
@@ -141,9 +143,11 @@ abstract class PlatalPage extends Smarty
if (!($globals->debug & DEBUG_SMARTY)) {
error_reporting(0);
}
+ $START_SMARTY = microtime(true);
$result = $this->fetch($skin);
- $ttime = sprintf('Temps total: %.02fs - Mémoire totale : %dKo
', microtime(true) - $TIME_BEGIN
- , memory_get_peak_usage(true) / 1024);
+ $ttime = sprintf('Temps total: %.02fs (Smarty %.02fs) - Mémoire totale : %dKo
',
+ microtime(true) - $TIME_BEGIN, microtime(true) - $START_SMARTY,
+ memory_get_peak_usage(true) / 1024);
if ($globals->debug & DEBUG_BT) {
PlBacktrace::clean();
$this->assign_by_ref('backtraces', PlBacktrace::$bt);