aboutsummaryrefslogtreecommitdiff
path: root/pages/tasks/friends.php
diff options
context:
space:
mode:
Diffstat (limited to 'pages/tasks/friends.php')
-rw-r--r--pages/tasks/friends.php33
1 files changed, 0 insertions, 33 deletions
diff --git a/pages/tasks/friends.php b/pages/tasks/friends.php
deleted file mode 100644
index cda0d6788..000000000
--- a/pages/tasks/friends.php
+++ /dev/null
@@ -1,33 +0,0 @@
-<?php
-/**
- * List a user's friends' tasks
- *
- * @package ElggTasks
- */
-
-$owner = elgg_get_page_owner_entity();
-if (!elgg_instanceof($owner, 'user')) {
- forward('tasks/all');
-}
-
-elgg_register_title_button('tasks', 'add');
-
-elgg_push_breadcrumb($owner->name, "tasks/owner/$owner->username");
-elgg_push_breadcrumb(elgg_echo('friends'));
-
-$title = elgg_echo('tasks:friends');
-
-$content = list_user_friends_objects($owner->guid, 'task', 10, false);
-if (!$content) {
- $content = elgg_echo('tasks:none');
-}
-
-$params = array(
- 'filter_context' => 'friends',
- 'content' => $content,
- 'title' => $title,
-);
-
-$body = elgg_view_layout('content', $params);
-
-echo elgg_view_page($title, $body);