]> git.mjollnir.org Git - moodle.git/commitdiff
If a file called cronextra.php exists in the dataroot then cron will
authormoodler <moodler>
Mon, 1 Dec 2003 08:01:41 +0000 (08:01 +0000)
committermoodler <moodler>
Mon, 1 Dec 2003 08:01:41 +0000 (08:01 +0000)
run that too.  This allows sites to have "special" maintenance.

admin/cron.php

index cad92b3bbce252f2f0acbbc4100956bef35194d3..a5c125df961310aecec556a4085e412debb736b0 100644 (file)
         }
     }
 
+    if (file_exists("$CFG->dataroot/cronextra.php")) {
+        include("$CFG->dataroot/cronextra.php");
+    }
+
     echo "Cron script completed correctly\n";
 
     $difftime = microtime_diff($starttime, microtime());