From a72f5d85606618b14139b62c78566607fe44d7f7 Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Sun, 16 Dec 2012 23:00:41 +0100 Subject: [PATCH] Move page generation text to template --- frontend/rewrite.php | 2 +- frontend/templates/default/shared/main.tpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/rewrite.php b/frontend/rewrite.php index e22d723..8d94c08 100644 --- a/frontend/rewrite.php +++ b/frontend/rewrite.php @@ -256,7 +256,7 @@ $sTemplateParameters = array_merge($sTemplateParameters, array( 'title' => $sPageTitle, 'main' => $sMainContents, 'menu-visible' => (isset($router->uVariables['menu']) && $router->sAuthenticated === true), - 'generation' => "" + 'generation' => round(microtime(true) - $timing_start, 6) )); echo(Templater::AdvancedParse("{$sTheme}/shared/main", $locale->strings, $sTemplateParameters)); diff --git a/frontend/templates/default/shared/main.tpl b/frontend/templates/default/shared/main.tpl index d3418ed..d1a78dd 100644 --- a/frontend/templates/default/shared/main.tpl +++ b/frontend/templates/default/shared/main.tpl @@ -34,6 +34,6 @@ - {%?generation} +