From d7237134d36a3c072edc474f963d137ed814f7be Mon Sep 17 00:00:00 2001 From: dave Date: Wed, 9 Jul 2008 13:37:04 +0000 Subject: new profile submenu committed git-svn-id: https://code.elgg.org/elgg/trunk@1358 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/profile/start.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'mod/profile/start.php') diff --git a/mod/profile/start.php b/mod/profile/start.php index 5f0eaabd2..80901659f 100644 --- a/mod/profile/start.php +++ b/mod/profile/start.php @@ -59,11 +59,13 @@ // Add Javascript reference to the page header extend_view('metatags','profile/metatags'); extend_view('css','profile/css'); - - // Extend context menu with admin links - if (isadminloggedin()) - { - extend_view('profile/menu/links','profile/menu/adminlinks'); + if (get_context() == "profile") + extend_view('canvas_header/submenu','profile/submenu'); + + // Extend context menu with admin links + if (isadminloggedin()) + { + extend_view('profile/menu/links','profile/menu/adminlinks'); } } -- cgit v1.2.3