Ignore:
Timestamp:
May 2, 2016, 12:09:23 PM (3 years ago)
Author:
jrpelegrina
Message:

Updated to moodle 3.0.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • moodle/trunk/fuentes/enrol/flatfile/lib.php

    r136 r1331  
    162162    }
    163163
    164     public function cron() {
    165         $trace = new text_progress_trace();
    166         $this->sync($trace);
    167     }
    168 
    169164    /**
    170165     * Execute synchronisation.
     
    447442            if ($ue = $DB->get_record('user_enrolments', array('enrolid'=>$instance->id, 'userid'=>$user->id))) {
    448443                // Update only.
    449                 $this->update_user_enrol($instance, $user->id, ENROL_USER_ACTIVE, $roleid, $timestart, $timeend);
     444                $this->update_user_enrol($instance, $user->id, ENROL_USER_ACTIVE, $timestart, $timeend);
    450445                if (!$DB->record_exists('role_assignments', array('contextid'=>$context->id, 'roleid'=>$roleid, 'userid'=>$user->id, 'component'=>'enrol_flatfile', 'itemid'=>$instance->id))) {
    451446                    role_assign($roleid, $user->id, $context->id, 'enrol_flatfile', $instance->id);
Note: See TracChangeset for help on using the changeset viewer.