updated widget utility

This commit is contained in:
denisdulici
2020-01-04 11:49:59 +03:00
parent 906b7045fa
commit bc46b1f8f6
2 changed files with 29 additions and 20 deletions

View File

@ -41,12 +41,16 @@ if (!function_exists('company_date')) {
if (!function_exists('show_widget')) {
/**
* Format the given date based on company settings.
* Show a widget.
*
* @return string
*/
function show_widget($model)
function show_widget()
{
return Widgets::show($model);
$arguments = func_get_args();
$model = array_shift($arguments);
return Widgets::show($model, ...$arguments);
}
}