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, 'title' => $sPageTitle,
'main' => $sMainContents, 'main' => $sMainContents,
'menu-visible' => (isset($router->uVariables['menu']) && $router->sAuthenticated === true), '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)); echo(Templater::AdvancedParse("{$sTheme}/shared/main", $locale->strings, $sTemplateParameters));

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

Loading…
Cancel
Save