Commit 10ba0567 by Alexander Makarov

Merge pull request #7016 from Mihai-P/master

Fixing the application config widget registration after the #6991 fix
parents 0ead5fc0 814ace1c
...@@ -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