diff options
| author | Michael Foster <savetheinternet@tinyboard.org> | 2013-08-29 18:55:25 +1000 |
|---|---|---|
| committer | Michael Foster <savetheinternet@tinyboard.org> | 2013-08-29 18:55:25 +1000 |
| commit | a8e37543757a6f5e6e841a3745cdb10b2247a269 (patch) | |
| tree | c8eabba468d3b7b7d98194c45d3ceffb8e5e95f1 /inc/template.php | |
| parent | 7b817eea1119a9bd243497d68ba27059533ba5d8 (diff) | |
Minor $config['try_smarter'] work
Diffstat (limited to 'inc/template.php')
| -rw-r--r-- | inc/template.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/inc/template.php b/inc/template.php index 6f85e78b..6d417631 100644 --- a/inc/template.php +++ b/inc/template.php @@ -35,7 +35,7 @@ function load_twig() { } function Element($templateFile, array $options) { - global $config, $debug, $twig; + global $config, $debug, $twig, $build_pages; if (!$twig) load_twig(); @@ -51,6 +51,8 @@ function Element($templateFile, array $options) { unset($debug['start']); unset($debug['start_debug']); } + if ($config['try_smarter'] && isset($build_pages) && !empty($build_pages)) + $debug['build_pages'] = $build_pages; $debug['included'] = get_included_files(); $debug['memory'] = round(memory_get_usage(true) / (1024 * 1024), 2) . ' MiB'; $options['body'] .= |
