Commit 51839f24 authored by webchick's avatar webchick
Browse files

#566494 follow-up by catch and David_Rothstein: Fixed Running cron in a...

#566494 follow-up by catch and David_Rothstein: Fixed Running cron in a shutdown function breaks the site.
parent aea6fe8f
......@@ -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) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment