]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
topbar friends should be in core, not profile plugin
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Thu, 9 Dec 2010 18:44:21 +0000 (18:44 +0000)
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Thu, 9 Dec 2010 18:44:21 +0000 (18:44 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@7584 36083f99-b078-4883-b0ff-0f9b5a30f544

mod/profile/start.php
mod/profile/views/default/profile/topbar_extend.php [deleted file]

index 0ba534585550c09b381e75531575bc8cc3fc8158..5e581a308391657bae36bd8c5c3af3a58fc02902 100644 (file)
@@ -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 (file)
index dd38b95..0000000
+++ /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>";
-}