summaryrefslogtreecommitdiff
path: root/modules/drupal
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-12-31 14:18:22 +0000
committerDries Buytaert <dries@buytaert.net>2005-12-31 14:18:22 +0000
commitebeaaedc8f4395afa220072eddf617bea81d59d0 (patch)
tree9eef7e1de6edee81019fec14de3373ee89c74b7e /modules/drupal
parent16051d46a94f360db508fc1fce436fa718f70e20 (diff)
downloadbrdo-ebeaaedc8f4395afa220072eddf617bea81d59d0.tar.gz
brdo-ebeaaedc8f4395afa220072eddf617bea81d59d0.tar.bz2
- Patch 42498 by m3avrck: unified cron-trackers and added a section that lets you figure out whether cron is running (usability improvement).
Diffstat (limited to 'modules/drupal')
-rw-r--r--modules/drupal/drupal.module3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/drupal/drupal.module b/modules/drupal/drupal.module
index c42d2c134..fe25a0f3b 100644
--- a/modules/drupal/drupal.module
+++ b/modules/drupal/drupal.module
@@ -74,8 +74,7 @@ function drupal_settings() {
* Implementation of hook_cron(); handles pings to and from the site.
*/
function drupal_cron() {
- if (time() - variable_get('drupal_cron_last', 0) > 21600) {
- variable_set('drupal_cron_last', time());
+ if (time() - variable_get('cron_last', 0) > 21600) {
// If this site acts as a Drupal XML-RPC server, delete the sites that
// stopped sending "ping" messages.