From 25ad1f47d68427519bf58809827164edd5f192f0 Mon Sep 17 00:00:00 2001 From: Sam Hemelryk Date: Tue, 18 May 2010 02:03:13 +0000 Subject: [PATCH] navigation MDL-22425 Fixed current user being added to the users branch in the navigation when on the site page --- lib/navigationlib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/navigationlib.php b/lib/navigationlib.php index 206ddaf6097..2390a942528 100644 --- a/lib/navigationlib.php +++ b/lib/navigationlib.php @@ -965,7 +965,7 @@ class global_navigation extends navigation_node { // Load for the current user $this->load_for_user(); - if ($this->page->context->contextlevel >= CONTEXT_COURSE) { + if ($this->page->context->contextlevel >= CONTEXT_COURSE && $this->page->context->instanceid != SITEID) { $this->load_for_user(null, true); } // Load each extending user into the navigation.