Index: .idea/vcs.xml IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- .idea/vcs.xml (revision 9d6be983c6a9ac7a70025187d7fabbffd7fdc66b) +++ .idea/vcs.xml (revision 9d6be983c6a9ac7a70025187d7fabbffd7fdc66b) @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file Index: admin/tool/task/lang/en/tool_task.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- admin/tool/task/lang/en/tool_task.php (revision 5b1e9327f5b9f057bcb19ebbfa9e4f9f6bd9c22d) +++ admin/tool/task/lang/en/tool_task.php (revision 9d6be983c6a9ac7a70025187d7fabbffd7fdc66b) @@ -43,6 +43,7 @@ $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'; Index: admin/tool/task/schedule_task.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- admin/tool/task/schedule_task.php (revision 5b1e9327f5b9f057bcb19ebbfa9e4f9f6bd9c22d) +++ admin/tool/task/schedule_task.php (revision 9d6be983c6a9ac7a70025187d7fabbffd7fdc66b) @@ -88,7 +88,15 @@ $CFG->mtrace_wrapper = 'tool_task_mtrace_wrapper'; // Run the specified task (this will output an error if it doesn't exist). -\tool_task\run_from_cli::execute($task); +if(\tool_task\run_from_cli::execute($task)){ + $runnow = ''; + $runnow = html_writer::div(html_writer::link( + new moodle_url('/admin/tool/task/schedule_task.php', + //array('task' => get_class($task))), + array('task' => get_class($task), 'confirm' => 1, 'sesskey' => sesskey())), + get_string('runagain', 'tool_task')), 'task-runnow'); + echo $runnow; +} echo html_writer::end_tag('pre'); Index: admin/tool/task/version.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- admin/tool/task/version.php (revision 5b1e9327f5b9f057bcb19ebbfa9e4f9f6bd9c22d) +++ admin/tool/task/version.php (revision 9d6be983c6a9ac7a70025187d7fabbffd7fdc66b) @@ -24,7 +24,7 @@ defined('MOODLE_INTERNAL') || die(); -$plugin->version = 2019052000; // The current plugin version (Date: YYYYMMDDXX) +$plugin->version = 2019052000.01; // The current plugin version (Date: YYYYMMDDXX) $plugin->requires = 2019051100; // Requires this Moodle version $plugin->component = 'tool_task'; // Full name of the plugin (used for diagnostics)