Browse files

Views - allow empty data array in manual widget render.

  • Loading branch information...
1 parent 4ef4a64 commit d71c4ce0523adb22ccee630d67e0e47971852aca @maskas maskas committed Mar 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 ip_cms/includes/Ip/View.php
View
2 ip_cms/includes/Ip/View.php
@@ -68,7 +68,7 @@ public static function create($file, $data = array()) {
return new \Ip\View($foundFile, $data);
}
- public function renderWidget($widgetName, $data, $layout = null) {
+ public function renderWidget($widgetName, $data = array(), $layout = null) {
require_once(BASE_DIR.MODULE_DIR.'standard/content_management/model.php');
$answer = \Modules\standard\content_management\Model::generateWidgetPreviewFromStaticData($widgetName, $data, $layout);
return $answer;

0 comments on commit d71c4ce

Please sign in to comment.