summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-02-18 06:28:08 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-02-18 06:28:08 +0000
commit51839f246967ee43035e7e2c096c35108dc98387 (patch)
tree547545d9a5c3b86048e2984fd2087b8d741c19f8
parentaea6fe8feb2393b92b11044dda37a24b8b249d68 (diff)
downloadbrdo-51839f246967ee43035e7e2c096c35108dc98387.tar.gz
brdo-51839f246967ee43035e7e2c096c35108dc98387.tar.bz2
#566494 follow-up by catch and David_Rothstein: Fixed Running cron in a shutdown function breaks the site.
-rw-r--r--includes/common.inc3
1 files changed, 1 insertions, 2 deletions
diff --git a/includes/common.inc b/includes/common.inc
index 82180255d..8e967f4aa 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -2438,6 +2438,7 @@ function drupal_page_footer() {
_registry_check_code(REGISTRY_WRITE_LOOKUP_CACHE);
drupal_cache_system_paths();
module_implements_write_cache();
+ system_run_automated_cron();
}
/**
@@ -4016,8 +4017,6 @@ function _drupal_bootstrap_full() {
fix_gpc_magic();
// Load all enabled modules
module_load_all();
- // Register automated cron run handler.
- drupal_register_shutdown_function('system_run_automated_cron');
// Make sure all stream wrappers are registered.
file_get_stream_wrappers();
if (isset($_SERVER['HTTP_USER_AGENT']) && strpos($_SERVER['HTTP_USER_AGENT'], 'simpletest') !== FALSE) {