- $ttime = sprintf('Temps total: %.02fs - Mémoire totale : %dKo<br />', microtime(true) - $TIME_BEGIN
- , memory_get_peak_usage(true) / 1024);
- $replc = "<span class='erreur'>VALIDATION HTML INACTIVE</span><br />";
+ $ttime = sprintf('Temps total: %.02fs (Smarty %.02fs) - Mémoire totale : %dKo<br />',
+ 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);
+ $result = str_replace('@@BACKTRACE@@', $this->fetch('skin/common.backtrace.tpl'), $result);
+ } else {
+ $result = str_replace('@@BACKTRACE@@', '', $result);
+ }