aboutsummaryrefslogtreecommitdiff
path: root/mod/profile/start.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/profile/start.php')
-rw-r--r--mod/profile/start.php12
1 files changed, 7 insertions, 5 deletions
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');
}
}