/[drupal]/contributions/modules/poormanscron/poormanscron.module
ViewVC logotype

Diff of /contributions/modules/poormanscron/poormanscron.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.21.2.2 by robloach, Wed May 6 05:07:08 2009 UTC revision 1.21.2.3 by davereid, Fri Nov 27 01:01:21 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: poormanscron.module,v 1.21.2.1 2008/04/27 09:40:29 robloach Exp $ $Name: DRUPAL-6--1 $  // $Id: poormanscron.module,v 1.21.2.2 2009/05/06 05:07:08 robloach Exp $ $Name:  $
3    
4  /**  /**
5   * @file   * @file
# Line 30  function poormanscron_exit() { Line 30  function poormanscron_exit() {
30    
31    // Calculate when the next poormanscron run is due.    // Calculate when the next poormanscron run is due.
32    $lastrun = variable_get('poormanscron_lastrun', 0);    $lastrun = variable_get('poormanscron_lastrun', 0);
33    $nextrun = $lastrun + 60 * variable_get('poormanscron_interval', 60);    $nextrun = $lastrun + 60 * variable_get('poormanscron_interval', 180);
34    
35    // If the configured time has passed, start the next poormanscron run.    // If the configured time has passed, start the next poormanscron run.
36    if (time() > $nextrun) {    if (time() > $nextrun) {

Legend:
Removed from v.1.21.2.2  
changed lines
  Added in v.1.21.2.3

  ViewVC Help
Powered by ViewVC 1.1.3