diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-02-26 17:26:51 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-02-26 17:26:51 +0000 |
commit | 6e3a38ff9128db14b5b7df66e942670068243047 (patch) | |
tree | d8a5b28539669cb44dade9467559f8b66380f946 /search | |
parent | 014ff8894b7a2aa49b4f0842c212683ea0c15293 (diff) | |
download | elgg-6e3a38ff9128db14b5b7df66e942670068243047.tar.gz elgg-6e3a38ff9128db14b5b7df66e942670068243047.tar.bz2 |
The search endpoint can now be told to go fetch a users' friends.
git-svn-id: https://code.elgg.org/elgg/trunk@2967 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'search')
-rw-r--r-- | search/index.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/search/index.php b/search/index.php index 4fda4ceb8..a0deac413 100644 --- a/search/index.php +++ b/search/index.php @@ -33,6 +33,17 @@ } else {
$owner_guid_array = $owner_guid;
}
+ $friends = (int) get_input('friends',0);
+ if ($friends > 0) {
+ if ($friends = get_user_friends($friends,'',9999)) {
+ $owner_guid_array = array();
+ foreach($friends as $friend) {
+ $owner_guid_array[] = $friend->guid;
+ }
+ } else {
+ $owner_guid = -1;
+ }
+ }
// Set up submenus
if ($object_types = get_registered_entity_types()) {
|