diff options
author | Cash Costello <cash.costello@gmail.com> | 2009-09-01 01:26:02 +0000 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2009-09-01 01:26:02 +0000 |
commit | ff7a4572ab0e91a3e18390c0a0f9706b36ee394b (patch) | |
tree | a2aed6adaca3de5f8814004f1a33bc1f638b0f0f /views | |
parent | 61d7f7243d7c06fd7ea9b282cda6efddf63a6a38 (diff) | |
download | elgg-ff7a4572ab0e91a3e18390c0a0f9706b36ee394b.tar.gz elgg-ff7a4572ab0e91a3e18390c0a0f9706b36ee394b.tar.bz2 |
moved tagging list to library and added group members
Diffstat (limited to 'views')
-rw-r--r-- | views/default/tidypics/tagging.php | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/views/default/tidypics/tagging.php b/views/default/tidypics/tagging.php index 5ba698d6d..ed33c4702 100644 --- a/views/default/tidypics/tagging.php +++ b/views/default/tidypics/tagging.php @@ -38,16 +38,7 @@ if ($viewer) {
- tp_get_tag_list($viewer);
-
- $friends = get_entities_from_relationship('friend', $viewer->getGUID(), false, 'user', '', 0, 'time_created desc', 1000);
-
- if ($friends) {
- foreach($friends as $friend) {
- $friend_array[$friend->name] = $friend->getGUID();
- }
- }
- ksort($friend_array);
+ $people_list = tp_get_tag_list($viewer);
$content = "<div id='tidypics_tagmenu_left'>";
$content .= "<input type='hidden' name='image_guid' value='{$image->guid}' />";
@@ -58,8 +49,8 @@ $content .= "<ul id='tidypics_phototag_list'>";
$content .= "<li><a href='javascript:void(0)' onclick='selectUser({$viewer->getGUID()},\"{$viewer->name}\")'> {$viewer->name} (" . elgg_echo('me') . ")</a></li>";
- if ($friends) {
- foreach($friend_array as $friend_name => $friend_guid) {
+ if ($people_list) {
+ foreach($people_list as $friend_guid => $friend_name) {
$content .= "<li><a href='javascript:void(0)' onclick='selectUser({$friend_guid}, \"{$friend_name}\")'>{$friend_name}</a></li>";
}
}
|