mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-31 01:34:09 +02:00
helpers/widget: options are opional
This commit is contained in:
parent
dbf03ee647
commit
617741c62f
@ -9,7 +9,7 @@ $this->addHelperFunction('auth', function () {
|
|||||||
return Manager::getInstance();
|
return Manager::getInstance();
|
||||||
});
|
});
|
||||||
|
|
||||||
$this->addHelperFunction('widget', function ($name, $options) {
|
$this->addHelperFunction('widget', function ($name, $options = null) {
|
||||||
return Widget::create($name, $options);
|
return Widget::create($name, $options);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user