Skip to content

Commit

Permalink
fix(TemplateEngine): use debug instead of debug_template
Browse files Browse the repository at this point in the history
  • Loading branch information
mrflos committed Jan 13, 2025
1 parent 116f112 commit 6d88f99
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion includes/services/TemplateEngine.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,10 @@ public function __construct(

// Adds Helpers
$this->addTwigHelper('dump', function ($var) {
if (isset($this->wiki->config['debug_template']) && $this->wiki->config['debug_template'] == 'yes') {
if (isset($this->wiki->config['debug']) && $this->wiki->config['debug'] == 'yes') {
return dump($var);
}

return '';
});
$this->addTwigHelper('_t', function ($key, $params = []) {
Expand Down

0 comments on commit 6d88f99

Please sign in to comment.