summaryrefslogtreecommitdiff
path: root/cron.php
diff options
context:
space:
mode:
Diffstat (limited to 'cron.php')
-rw-r--r--cron.php9
1 files changed, 1 insertions, 8 deletions
diff --git a/cron.php b/cron.php
index 148a3b492..e59c90e98 100644
--- a/cron.php
+++ b/cron.php
@@ -2,13 +2,6 @@
include_once "includes/common.inc";
-function cron_run() {
- $time = time();
- $result = db_query("SELECT * FROM crons WHERE $time - timestamp > scheduled");
- while ($task = db_fetch_object($result)) module_invoke($task->module, "cron");
- db_query("UPDATE crons SET timestamp = $time WHERE $time - timestamp > scheduled");
-}
-
-cron_run();
+foreach (module_list() as $module) module_invoke($module, "cron");
?> \ No newline at end of file