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
(from parent 1:
7892013
)
Merge branch 'MDL-64439-master' of https://github.com/ilya-catalyst/moodle
author
Jake Dallimore
<jake@moodle.com>
Thu, 2 May 2019 06:47:39 +0000
(14:47 +0800)
committer
Jake Dallimore
<jake@moodle.com>
Thu, 2 May 2019 06:47:39 +0000
(14:47 +0800)
lib/moodlelib.php
patch
|
blob
|
blame
|
history
diff --git
a/lib/moodlelib.php
b/lib/moodlelib.php
index
f881133
..
67e3e72
100644
(file)
--- a/
lib/moodlelib.php
+++ b/
lib/moodlelib.php
@@
-2699,6
+2699,10
@@
function require_login($courseorid = null, $autologinguest = true, $cm = null, $
$authplugin = get_auth_plugin($authname);
$authplugin->pre_loginpage_hook();
if (isloggedin()) {
+ if ($cm) {
+ $modinfo = get_fast_modinfo($course);
+ $cm = $modinfo->get_cm($cm->id);
+ }
break;
}
}