Commit 7f49669b authored by Tomáš Pospíšil's avatar Tomáš Pospíšil
Browse files

remove smarty_backtrace

parent 3fda33dc
......@@ -49,12 +49,14 @@ final class SmartyBarPanel extends BaseBarPanel
}
$this->smarty->assign('smartyBacktrace', $smartyBacktrace);
$smartyVars = array_combine(array_keys($this->currentSmarty->tpl_vars), array_column($this->currentSmarty->tpl_vars, 'value'));
unset($smartyVars['smarty_backtrace']);
$smartyVars =
array_map(
static function ($value) {
return Dumper::toHtml($value);
},
array_combine(array_keys($this->currentSmarty->tpl_vars), array_column($this->currentSmarty->tpl_vars, 'value'))
$smartyVars
);
ksort($smartyVars, SORT_STRING | SORT_FLAG_CASE);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment