Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

MDL-34870 enrol_cohort - don't need to do useless work

  • Loading branch information...
commit a4241511ed3c186aa3866a26b43a13e5406a0247 1 parent fb4e694
Dan Poltawski danpoltawski authored

Showing 1 changed file with 1 addition and 8 deletions. Show diff stats Hide diff stats

  1. +1 8 enrol/cohort/lib.php
9 enrol/cohort/lib.php
@@ -121,14 +121,7 @@ public function cron() {
121 121 * @return void
122 122 */
123 123 public function course_updated($inserted, $course, $data) {
124   - global $CFG;
125   -
126   - if (!$inserted) {
127   - // Let's not sync cohorts anytime a course is updated...
128   - } else {
129   - // cohorts are never inserted automatically
130   - }
131   -
  124 + // It turns out there is no need for cohorts to deal with this hook, see MDL-34870.
132 125 }
133 126
134 127 /**

0 comments on commit a424151

Please sign in to comment.
Something went wrong with that request. Please try again.