summaryrefslogtreecommitdiffstats
path: root/cron.php
diff options
context:
space:
mode:
authorDries Buytaert2006-08-09 07:42:55 +0000
committerDries Buytaert2006-08-09 07:42:55 +0000
commit37469a8df4e754327c24b3cf29b3c1e79d0caaf8 (patch)
tree11b83c7714485742a18af5584a7953d277c315df /cron.php
parent3c975f4bb8d3975dc73444e47d01dd98e9b2b37a (diff)
- Patch #76958 by forngren, dww et al: make it a tad easier to run cron manually.
Diffstat (limited to 'cron.php')
-rw-r--r--cron.php22
1 files changed, 1 insertions, 21 deletions
diff --git a/cron.php b/cron.php
index cdc0b45..f242ee7 100644
--- a/cron.php
+++ b/cron.php
@@ -8,24 +8,4 @@
include_once './includes/bootstrap.inc';
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
-
-// If not in 'safe mode', increase the maximum execution time:
-if (!ini_get('safe_mode')) {
- set_time_limit(240);
-}
-
-// Check if the last cron run completed
-if (variable_get('cron_busy', FALSE)) {
- watchdog('cron', t('Last cron run did not complete.'), WATCHDOG_WARNING);
-}
-else {
- variable_set('cron_busy', TRUE);
-}
-
-// Iterate through the modules calling their cron handlers (if any):
-module_invoke_all('cron');
-
-// Clean up
-variable_set('cron_busy', FALSE);
-variable_set('cron_last', time());
-watchdog('cron', t('Cron run completed'));
+drupal_cron_run();