diff options
Diffstat (limited to 'views/default/widgets')
-rw-r--r-- | views/default/widgets/cloud_generic_index/content.php | 5 | ||||
-rw-r--r-- | views/default/widgets/latest_news_index/edit.php | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/views/default/widgets/cloud_generic_index/content.php b/views/default/widgets/cloud_generic_index/content.php index d87e70b16..1f4410f76 100644 --- a/views/default/widgets/cloud_generic_index/content.php +++ b/views/default/widgets/cloud_generic_index/content.php @@ -22,8 +22,9 @@ $widget_group = $vars["entity"]->widget_group; if (!isset($widget_group)) $widget_group = "";
-
-$body = elgg_view_tagcloud($threshold, $num_items, $metadata_name, $maintype, $subtype, $widget_group , -1);;
+$options = array('type' => $maintype, 'subtype' => $subtype);
+$body = elgg_view_tagcloud($options);
+//$body = elgg_view_tagcloud($threshold, $num_items, $metadata_name, $maintype, $subtype, $widget_group , -1);;
echo $body;
?>
diff --git a/views/default/widgets/latest_news_index/edit.php b/views/default/widgets/latest_news_index/edit.php index 65298076a..063b5ddc1 100644 --- a/views/default/widgets/latest_news_index/edit.php +++ b/views/default/widgets/latest_news_index/edit.php @@ -1,4 +1,4 @@ - <?php +<?php $num_items = $vars['entity']->num_items; if (!isset($num_items)) $num_items = 10; |