diff options
author | Dave Tosh <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-06-09 11:12:08 +0000 |
---|---|---|
committer | Dave Tosh <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-06-09 11:12:08 +0000 |
commit | 6184173a998d22ae19c1aa9f828a7c71580cc092 (patch) | |
tree | ca48921bee262795fa73bdb0876f97d8c6674a26 | |
parent | c44ac0e6b390f512da32b8e5d4b0fc1666a6b964 (diff) | |
download | elgg-6184173a998d22ae19c1aa9f828a7c71580cc092.tar.gz elgg-6184173a998d22ae19c1aa9f828a7c71580cc092.tar.bz2 |
pull out friends videos
git-svn-id: http://code.elgg.org@6417 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r-- | friends.php | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/friends.php b/friends.php index 4a0178359..dc0bd35ad 100644 --- a/friends.php +++ b/friends.php @@ -14,10 +14,16 @@ require_once(dirname(dirname(dirname(__FILE__))) . "/engine/start.php"); // get the filter menu $area1 = elgg_view("page_elements/content_header", array('context' => "friends", 'type' => 'videolist')); - + +$page_owner = page_owner_entity(); +if ($page_owner === false || is_null($page_owner)) { + $page_owner = $_SESSION['user']; + set_page_owner($page_owner->getGUID()); +} + // List videos set_context('search'); -$area2 .= list_user_friends_objects(page_owner(),'videolist',10,false,false); +$area2 .= list_user_friends_objects($page_owner->getGUID(), 'videolist', 10, false, false); set_context('videolist'); // include a view for plugins to extend |