Move page generation text to template

feature/node-rewrite
Sven Slootweg 12 years ago
parent c55aef5f05
commit a72f5d8560

@ -256,7 +256,7 @@ $sTemplateParameters = array_merge($sTemplateParameters, array(
'title' => $sPageTitle,
'main' => $sMainContents,
'menu-visible' => (isset($router->uVariables['menu']) && $router->sAuthenticated === true),
'generation' => "<!-- page generated in " . (round(microtime(true) - $timing_start, 6)) . " seconds. -->"
'generation' => round(microtime(true) - $timing_start, 6)
));
echo(Templater::AdvancedParse("{$sTheme}/shared/main", $locale->strings, $sTemplateParameters));

@ -34,6 +34,6 @@
</div>
</div>
<img class="preload" src="/templates/default/static/images/misc/loading.gif">
{%?generation}
<!-- page generated in {%?generation} seconds. -->
</body>
</html>

Loading…
Cancel
Save