From: moodler Date: Mon, 1 Dec 2003 08:01:41 +0000 (+0000) Subject: If a file called cronextra.php exists in the dataroot then cron will X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=750eeaebd5963b451fbf50ee2e643b1700e97169;p=moodle.git If a file called cronextra.php exists in the dataroot then cron will run that too. This allows sites to have "special" maintenance. --- 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());