aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-09 18:44:21 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-09 18:44:21 +0000
commit623f6f475d2fc6335b313c73da7f3eeca4471a8b (patch)
tree4b05453b0aefc2321f7e48a9f4465af9001d699c
parentaf0eea36d6ded0843347a9eae36d9ebf17ab9972 (diff)
downloadelgg-623f6f475d2fc6335b313c73da7f3eeca4471a8b.tar.gz
elgg-623f6f475d2fc6335b313c73da7f3eeca4471a8b.tar.bz2
topbar friends should be in core, not profile plugin
git-svn-id: http://code.elgg.org/elgg/trunk@7584 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--mod/profile/start.php2
-rw-r--r--mod/profile/views/default/profile/topbar_extend.php11
2 files changed, 0 insertions, 13 deletions
diff --git a/mod/profile/start.php b/mod/profile/start.php
index 0ba534585..5e581a308 100644
--- a/mod/profile/start.php
+++ b/mod/profile/start.php
@@ -18,8 +18,6 @@ function profile_init() {
// will dictate the URL for all ElggUser objects
register_entity_url_handler('profile_url', 'user', 'all');
- // Set up the menu for logged-in users
- elgg_extend_view('elgg_topbar/extend', 'profile/topbar_extend');
//if (isloggedin()) {
// add_menu(elgg_echo('profile:yours'), get_loggedin_user()->getURL() . '/extend');
//}
diff --git a/mod/profile/views/default/profile/topbar_extend.php b/mod/profile/views/default/profile/topbar_extend.php
deleted file mode 100644
index dd38b9557..000000000
--- a/mod/profile/views/default/profile/topbar_extend.php
+++ /dev/null
@@ -1,11 +0,0 @@
-<?php
-/**
- *
- */
-
-$user = get_loggedin_user();
-
-if (($user instanceof ElggUser) && ($user->guid > 0)) {
- $friends = elgg_echo('friends');
- echo "<a class='myfriends' href=\"".elgg_get_site_url()."pg/friends/{$user->username}\" title=\"$friends\">$friends</a>";
-}