- cron.php:

+ potential improvement (thanks KJ)
3-00
Dries Buytaert 2001-07-16 14:43:56 +00:00
parent 85341253b4
commit 04369e6a68
1 changed files with 15 additions and 1 deletions

View File

@ -2,6 +2,20 @@
include_once "includes/common.inc";
foreach (module_list() as $module) module_invoke($module, "cron");
/*
** If not in 'safe mode', increase the maximum execution time:
*/
if (!get_cfg_var("safe_mode")) {
set_time_limit(180);
}
/*
** Iterate through the modules calling their cron handlers (if any):
*/
foreach (module_list() as $module) {
module_invoke($module, "cron");
}
?>