diff --git a/libraries/Template.php b/libraries/Template.php index 73d3a400f5..6f2faa0e6b 100644 --- a/libraries/Template.php +++ b/libraries/Template.php @@ -143,11 +143,11 @@ class Template $template = static::BASE_PATH . $this->name . '.phtml'; try { $this->set($data); - extract($this->data); $this->helperFunctions = array_merge( $this->helperFunctions, $helperFunctions ); + extract($this->data); ob_start(); if (file_exists($template)) { include $template;