diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-08 12:42:12 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-08 12:42:12 +0000 |
commit | 872a5469da80557721e32b22e93af531c2a279fa (patch) | |
tree | 105d1fba22acd7f370578f91055028af7c217065 /mod/tagcloud/views/default/widgets/tagcloud/content.php | |
parent | 2aaf2d80f1cbc2a6ad4a1b4b5ef97c3494d6a0bd (diff) | |
download | elgg-872a5469da80557721e32b22e93af531c2a279fa.tar.gz elgg-872a5469da80557721e32b22e93af531c2a279fa.tar.bz2 |
cleaned up tagcloud plugin
git-svn-id: http://code.elgg.org/elgg/trunk@8076 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/tagcloud/views/default/widgets/tagcloud/content.php')
-rw-r--r-- | mod/tagcloud/views/default/widgets/tagcloud/content.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/mod/tagcloud/views/default/widgets/tagcloud/content.php b/mod/tagcloud/views/default/widgets/tagcloud/content.php index 5ed71d66a..af1d6a5f6 100644 --- a/mod/tagcloud/views/default/widgets/tagcloud/content.php +++ b/mod/tagcloud/views/default/widgets/tagcloud/content.php @@ -1,10 +1,11 @@ <?php +/** + * Tag cloud widget + */ $num_items = $vars['entity']->num_items; -if (!isset($num_items)) { - $num_items = 30; -} +elgg_push_context('tags'); $options = array( 'owner_guid' => elgg_get_page_owner_guid(), 'threshold' => 1, @@ -12,3 +13,4 @@ $options = array( 'tag_name' => 'tags', ); echo elgg_view_tagcloud($options); +elgg_pop_context(); |