From 750eeaebd5963b451fbf50ee2e643b1700e97169 Mon Sep 17 00:00:00 2001 From: moodler Date: Mon, 1 Dec 2003 08:01:41 +0000 Subject: [PATCH] If a file called cronextra.php exists in the dataroot then cron will run that too. This allows sites to have "special" maintenance. --- admin/cron.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/admin/cron.php b/admin/cron.php index cad92b3bbc..a5c125df96 100644 --- a/admin/cron.php +++ b/admin/cron.php @@ -95,6 +95,10 @@ } } + if (file_exists("$CFG->dataroot/cronextra.php")) { + include("$CFG->dataroot/cronextra.php"); + } + echo "Cron script completed correctly\n"; $difftime = microtime_diff($starttime, microtime()); -- 2.39.5