mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
Merge branch 'MDL-59487' of https://github.com/brendanheywood/moodle
This commit is contained in:
commit
0c75251509
@ -43,6 +43,7 @@ $string['pluginname'] = 'Scheduled task configuration';
|
||||
$string['resettasktodefaults'] = 'Reset task schedule to defaults';
|
||||
$string['resettasktodefaults_help'] = 'This will discard any local changes and revert the schedule for this task back to its original settings.';
|
||||
$string['runnow'] = 'Run now';
|
||||
$string['runagain'] = 'Run again';
|
||||
$string['runnow_confirm'] = 'Are you sure you want to run this task \'{$a}\' now? The task will run on the web server and may take some time to complete.';
|
||||
$string['runpattern'] = 'Run pattern';
|
||||
$string['scheduledtasks'] = 'Scheduled tasks';
|
||||
|
@ -92,6 +92,11 @@ $CFG->mtrace_wrapper = 'tool_task_mtrace_wrapper';
|
||||
echo html_writer::end_tag('pre');
|
||||
|
||||
$output = $PAGE->get_renderer('tool_task');
|
||||
|
||||
// Re-run the specified task (this will output an error if it doesn't exist).
|
||||
echo $OUTPUT->single_button(new moodle_url('/admin/tool/task/schedule_task.php',
|
||||
array('task' => $taskname, 'confirm' => 1, 'sesskey' => sesskey())),
|
||||
get_string('runagain', 'tool_task'));
|
||||
echo $output->link_back();
|
||||
|
||||
echo $OUTPUT->footer();
|
||||
|
Loading…
x
Reference in New Issue
Block a user