helpers/widget: options are opional

This commit is contained in:
Thomas Gelf 2014-06-20 13:18:52 +02:00
parent dbf03ee647
commit 617741c62f
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ $this->addHelperFunction('auth', function () {
return Manager::getInstance();
});
$this->addHelperFunction('widget', function ($name, $options) {
$this->addHelperFunction('widget', function ($name, $options = null) {
return Widget::create($name, $options);
});