Skip to content

Commit

Permalink
MDL-50287 completion: Rename tasks to remove the word 'cron'
Browse files Browse the repository at this point in the history
  • Loading branch information
danpoltawski committed Aug 27, 2015
1 parent 0628925 commit 160ccd3
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions lang/en/admin.php
Expand Up @@ -1020,8 +1020,8 @@
$string['taskcalendarcron'] = 'Send calendar notifications';
$string['taskcheckforupdates'] = 'Check for updates';
$string['taskcompletioncron'] = 'Calculate completion data';
$string['taskcompletioncronregular'] = 'Calculate regular completion data';
$string['taskcompletioncrondaily'] = 'Completion mark as started';
$string['taskcompletionregular'] = 'Calculate regular completion data';
$string['taskcompletiondaily'] = 'Completion mark as started';
$string['taskcontextcleanup'] = 'Cleanup contexts';
$string['taskcreatecontexts'] = 'Create missing contexts';
$string['taskdeletecachetext'] = 'Delete old text cache records';
Expand Down
Expand Up @@ -28,15 +28,15 @@
* @copyright 2013 onwards Martin Dougiamas http://dougiamas.com.
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later.
*/
class completion_cron_daily_task extends scheduled_task {
class completion_daily_task extends scheduled_task {

/**
* Get a descriptive name for this task (shown to admins).
*
* @return string
*/
public function get_name() {
return get_string('taskcompletioncrondaily', 'admin');
return get_string('taskcompletiondaily', 'admin');
}

/**
Expand Down
Expand Up @@ -28,15 +28,15 @@
* @copyright 2015 Josh Willcock
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later.
*/
class completion_cron_regular_task extends scheduled_task {
class completion_regular_task extends scheduled_task {

/**
* Get a descriptive name for this task (shown to admins).
*
* @return string
*/
public function get_name() {
return get_string('taskcompletioncronregular', 'admin');
return get_string('taskcompletionregular', 'admin');
}

/**
Expand Down
4 changes: 2 additions & 2 deletions lib/db/tasks.php
Expand Up @@ -159,7 +159,7 @@
'month' => '*'
),
array(
'classname' => 'core\task\completion_cron_regular_task',
'classname' => 'core\task\completion_regular_task',
'blocking' => 0,
'minute' => '*',
'hour' => '*',
Expand All @@ -168,7 +168,7 @@
'month' => '*'
),
array(
'classname' => 'core\task\completion_cron_daily_task',
'classname' => 'core\task\completion_daily_task',
'blocking' => 0,
'minute' => 'R',
'hour' => 'R',
Expand Down

0 comments on commit 160ccd3

Please sign in to comment.