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

Diff of /contributions/modules/cronplus/cronplus.module

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

revision 1.8.2.3, Fri Dec 19 04:45:24 2008 UTC revision 1.8.2.4, Fri Dec 19 09:47:18 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  /**  /**
3   * $Id: cronplus.module,v 1.8.2.2 2008/12/19 04:35:25 syscrusher Exp $   * $Id: cronplus.module,v 1.8.2.3 2008/12/19 04:45:24 syscrusher Exp $
4   *   *
5   * CronPlus enhances the Drupal cron feature to provide specific calls to   * CronPlus enhances the Drupal cron feature to provide specific calls to
6   * other modules at hourly, daily, weekly, monthly, and yearly intervals.   * other modules at hourly, daily, weekly, monthly, and yearly intervals.
# Line 190  function cronplus_cron() { Line 190  function cronplus_cron() {
190    // Gather information...    // Gather information...
191    $last_cron = intval(variable_get('cronplus_last_cron', 0));    $last_cron = intval(variable_get('cronplus_last_cron', 0));
192    $now = time();    $now = time();
193    $now_wkdy  = intval(gmdate('w'), $now); // 0=Sunday    $now_wkdy  = intval(gmdate('w', $now)); // 0=Sunday
194    // For the $now_week, weeks start on Monday, not Sunday. This is a mismatch    // For the $now_week, weeks start on Monday, not Sunday. This is a mismatch
195    // against $now_wkdy, but it doesn't matter because all we are looking for    // against $now_wkdy, but it doesn't matter because all we are looking for
196    // in $now_week is a *change* -- we don't care about the actual value.    // in $now_week is a *change* -- we don't care about the actual value.

Legend:
Removed from v.1.8.2.3  
changed lines
  Added in v.1.8.2.4

  ViewVC Help
Powered by ViewVC 1.1.2