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:
fb4e694
)
MDL-34870 enrol_cohort - don't need to do useless work
author
Dan Poltawski
<dan@moodle.com>
Wed, 22 Aug 2012 02:00:37 +0000
(10:00 +0800)
committer
Dan Poltawski
<dan@moodle.com>
Wed, 22 Aug 2012 02:03:10 +0000
(10:03 +0800)
enrol/cohort/lib.php
patch
|
blob
|
blame
|
history
diff --git
a/enrol/cohort/lib.php
b/enrol/cohort/lib.php
index
49d8fcb
..
cfa352c
100644
(file)
--- a/
enrol/cohort/lib.php
+++ b/
enrol/cohort/lib.php
@@
-121,14
+121,7
@@
class enrol_cohort_plugin extends enrol_plugin {
* @return void
*/
public function course_updated($inserted, $course, $data) {
- global $CFG;
-
- if (!$inserted) {
- // Let's not sync cohorts anytime a course is updated...
- } else {
- // cohorts are never inserted automatically
- }
-
+ // It turns out there is no need for cohorts to deal with this hook, see MDL-34870.
}
/**