Commit 814ace1c by Mihai Petrescu

Fixing the application config widget registration after the #6991 fix

parent 0ead5fc0
...@@ -99,7 +99,7 @@ class ViewRenderer extends BaseViewRenderer ...@@ -99,7 +99,7 @@ class ViewRenderer extends BaseViewRenderer
// Register function widgets specified in configuration array // Register function widgets specified in configuration array
if (isset($this->widgets['functions'])) { if (isset($this->widgets['functions'])) {
foreach(($this->widgets['functions']) as $tag => $class) { foreach(($this->widgets['functions']) as $tag => $class) {
$this->smarty->registerPlugin('function', $tag, [$this, '_widget_func__' . $tag]); $this->smarty->registerPlugin('function', $tag, [$this, '_widget_function__' . $tag]);
$this->smarty->registerClass($tag, $class); $this->smarty->registerClass($tag, $class);
} }
} }
......
Markdown is supported
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