MDL-29509 add cron support for admin tools
authorPetr Skoda <commits@skodak.org>
Sat, 24 Sep 2011 15:32:14 +0000 (17:32 +0200)
committerPetr Skoda <commits@skodak.org>
Mon, 26 Sep 2011 22:39:19 +0000 (00:39 +0200)
lib/cronlib.php

index dc944a4..1701966 100644 (file)
@@ -452,6 +452,7 @@ function cron_run() {
     cron_execute_plugin_type('qtype', 'question types');
     cron_execute_plugin_type('plagiarism', 'plagiarism plugins');
     cron_execute_plugin_type('theme', 'themes');
     cron_execute_plugin_type('qtype', 'question types');
     cron_execute_plugin_type('plagiarism', 'plagiarism plugins');
     cron_execute_plugin_type('theme', 'themes');
+    cron_execute_plugin_type('tool', 'admin tools');
 
     // and finally run any local cronjobs, if any
     if ($locals = get_plugin_list('local')) {
 
     // and finally run any local cronjobs, if any
     if ($locals = get_plugin_list('local')) {