From ba9b44f97643cb3c02a56367dde004baa76fc54f Mon Sep 17 00:00:00 2001 From: toyomoyo Date: Fri, 30 Nov 2007 02:00:04 +0000 Subject: [PATCH] adding support for customized cron --- admin/cron.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/admin/cron.php b/admin/cron.php index ffff0a8238..ffbbd9b9d0 100644 --- a/admin/cron.php +++ b/admin/cron.php @@ -511,6 +511,15 @@ } } } + + // run any customized cronjobs, if any + // looking for functions in lib/local/cron.php + if (file_exists($CFG->libdir.'/local/cron.php')) { + mtrace('Processing customized cron script ...', ''); + include_once($CFG->libdir.'/local/cron.php'); + mtrace('done.'); + } + //Unset session variables and destroy it @session_unset(); -- 2.39.5