Commit db7e4a44 by Alexander Makarov

Added echo output in case there's return

parent 4023f421
......@@ -93,13 +93,7 @@ class Widget extends Component implements ViewContextInterface
/** @var Widget $widget */
$config['class'] = get_called_class();
$widget = Yii::createObject($config);
$out = $widget->run();
if (empty($out)) {
return ob_get_clean();
} else {
ob_clean();
return $out;
}
return ob_get_clean() . $widget->run();
}
private $_id;
......
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