From 774c13ca156ef1dd031d148c4b68de345468633f Mon Sep 17 00:00:00 2001 From: Penny Leach Date: Thu, 4 Mar 2010 17:06:19 +0000 Subject: [PATCH] events: MDL-17442 add support for local events and run event queue in cron --- admin/cron.php | 3 +++ lib/locallib.php | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/admin/cron.php b/admin/cron.php index e088906c4af..1fc9c3550b6 100644 --- a/admin/cron.php +++ b/admin/cron.php @@ -223,6 +223,9 @@ grade_cron(); mtrace('done.'); + mtrace('Starting processing the event queue...'); + events_cron(); + mtrace('done.'); /// Run all core cron jobs, but not every time since they aren't too important. /// These don't have a timer to reduce load, so we'll use a random number diff --git a/lib/locallib.php b/lib/locallib.php index 25f50e8cf05..b4ae6387b45 100644 --- a/lib/locallib.php +++ b/lib/locallib.php @@ -184,6 +184,10 @@ function upgrade_local_db($continueto) { error('Could not set up the capabilities for local!'); } + if (!events_update_definition('local')) { + error('Could not set up the events definitions for local!'); + } + upgrade_log_finish(); }