diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-08-22 22:37:30 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-08-22 22:37:30 +0000 |
commit | ca08eb6d170d375ef4fca53604956f3474c7db19 (patch) | |
tree | a1e96c6b0ae322fab93373a66e1951e2b3b9be48 /mod/categories/views | |
parent | be37104ac63cd25f2eac831ca03d6d2b19976e1c (diff) | |
download | elgg-ca08eb6d170d375ef4fca53604956f3474c7db19.tar.gz elgg-ca08eb6d170d375ef4fca53604956f3474c7db19.tar.bz2 |
Merged r6701:6756 from 1.7 branch into trunk
git-svn-id: http://code.elgg.org/elgg/trunk@6849 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/categories/views')
-rw-r--r-- | mod/categories/views/default/categories/list.php | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/mod/categories/views/default/categories/list.php b/mod/categories/views/default/categories/list.php index 161a21655..9b62eff51 100644 --- a/mod/categories/views/default/categories/list.php +++ b/mod/categories/views/default/categories/list.php @@ -13,7 +13,18 @@ if ($categories) { if (isset($vars['owner_guid'])) { $owner_guid = (int) $vars['owner_guid']; } - if ($cats = get_tags(0,999,'universal_categories','object',$vars['subtype'],$owner_guid)) { + + elgg_register_tag_metadata_name('universal_categories'); + $params = array( + 'threshold' => 1, + 'limit' => 999, + 'tag_names' => array('universal_categories'), + 'types' => 'object', + 'subtypes' => $vars['subtype'], + 'owner_guid' => $owner_guid, + ); + $cats = elgg_get_tags($params); + if ($cats) { foreach($cats as $cat) { $flag[] = $cat->tag; } |