MDL-50890 enrol_flatfile: Modifications for compliance with standards
authorJun Pataleta <jun@moodle.com>
Mon, 7 Sep 2015 08:24:02 +0000 (16:24 +0800)
committerDavid Monllao <davidm@moodle.com>
Wed, 16 Sep 2015 01:08:34 +0000 (09:08 +0800)
Also changed the scheduled task to run every hour.

enrol/flatfile/classes/task/flatfile_sync_task.php
enrol/flatfile/db/tasks.php
enrol/flatfile/version.php

index 9c2feda..7306778 100644 (file)
@@ -28,6 +28,9 @@ defined('MOODLE_INTERNAL') || die;
 
 /**
  * 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 {
 
index 435bb1b..a78fd91 100644 (file)
@@ -28,7 +28,7 @@ $tasks = array(
     array(
         'classname' => '\enrol_flatfile\task\flatfile_sync_task',
         'blocking' => 0,
-        'minute' => '*',
+        'minute' => '15',
         'hour' => '*',
         'day' => '*',
         'dayofweek' => '*',
index c1c873b..e7e8b86 100644 (file)
@@ -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)