Skip to content

Commit

Permalink
MDL-50890 enrol_flatfile: Modifications for compliance with standards
Browse files Browse the repository at this point in the history
Also changed the scheduled task to run every hour.
  • Loading branch information
junpataleta authored and David Monllao committed Sep 16, 2015
1 parent a771854 commit fd1b399
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions enrol/flatfile/classes/task/flatfile_sync_task.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@

/**
* Simple task to run sync enrolments.
*
* @copyright 2014 Troy Williams
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class flatfile_sync_task extends \core\task\scheduled_task {

Expand Down
2 changes: 1 addition & 1 deletion enrol/flatfile/db/tasks.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
array(
'classname' => '\enrol_flatfile\task\flatfile_sync_task',
'blocking' => 0,
'minute' => '*',
'minute' => '15',
'hour' => '*',
'day' => '*',
'dayofweek' => '*',
Expand Down
2 changes: 1 addition & 1 deletion enrol/flatfile/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@

defined('MOODLE_INTERNAL') || die();

$plugin->version = 2015051101; // The current plugin version (Date: YYYYMMDDXX)
$plugin->version = 2015090700; // The current plugin version (Date: YYYYMMDDRR)
$plugin->requires = 2015050500; // Requires this Moodle version
$plugin->component = 'enrol_flatfile'; // Full name of the plugin (used for diagnostics)

0 comments on commit fd1b399

Please sign in to comment.