summaryrefslogtreecommitdiff
path: root/cron.php
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-07-16 14:43:56 +0000
committerDries Buytaert <dries@buytaert.net>2001-07-16 14:43:56 +0000
commit04369e6a68b144ed906ceb6c52fcbf84251eb19c (patch)
tree39a90f74bc714ec00ae1486b58ab3e91c9dc0b4a /cron.php
parent85341253b44975fe390172b705d9f93b0df18792 (diff)
downloadbrdo-04369e6a68b144ed906ceb6c52fcbf84251eb19c.tar.gz
brdo-04369e6a68b144ed906ceb6c52fcbf84251eb19c.tar.bz2
- cron.php:
+ potential improvement (thanks KJ)
Diffstat (limited to 'cron.php')
-rw-r--r--cron.php16
1 files changed, 15 insertions, 1 deletions
diff --git a/cron.php b/cron.php
index e59c90e98..acfb9507d 100644
--- a/cron.php
+++ b/cron.php
@@ -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");
+}
?> \ No newline at end of file