Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f05796
)
MDL-23626 Fixed bug causing course and general user activity reports to be marked...
author
Sam Hemelryk
<sam@moodle.com>
Wed, 27 Jul 2011 02:16:48 +0000
(10:16 +0800)
committer
Sam Hemelryk
<sam@moodle.com>
Wed, 27 Jul 2011 02:16:48 +0000
(10:16 +0800)
lib/navigationlib.php
patch
|
blob
|
blame
|
history
diff --git
a/lib/navigationlib.php
b/lib/navigationlib.php
index
c76963b
..
01929e5
100644
(file)
--- a/
lib/navigationlib.php
+++ b/
lib/navigationlib.php
@@
-1824,6
+1824,9
@@
class global_navigation extends navigation_node {
if ($iscurrentuser && !$forceforcontext) {
// If it's the current user the information will go under the profile root node
$usernode = $this->rootnodes['myprofile'];
+ $course = get_site();
+ $coursecontext = get_context_instance(CONTEXT_COURSE, $course->id);
+ $issitecourse = true;
} else {
if (!$issitecourse) {
// Not the current user so add it to the participants node for the current course