Index: README.txt
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/poormanscron/README.txt,v
retrieving revision 1.4.4.2
diff -u -r1.4.4.2 README.txt
--- README.txt	20 Jan 2007 18:25:41 -0000	1.4.4.2
+++ README.txt	21 Sep 2007 21:18:22 -0000
@@ -16,7 +16,7 @@
 Requirements
 ------------
 
-This module requires Drupal 5.0 or a later version.
+This module requires Drupal 6.0 or a later version.
 
 
 Installation
Index: poormanscron.info
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/poormanscron/poormanscron.info,v
retrieving revision 1.1.2.2
diff -u -r1.1.2.2 poormanscron.info
--- poormanscron.info	14 Jan 2007 12:34:37 -0000	1.1.2.2
+++ poormanscron.info	20 Sep 2007 17:01:12 -0000
@@ -1,3 +1,4 @@
 ;$Id: poormanscron.info,v 1.1.2.2 2007/01/14 12:34:37 uwe Exp $
 name = Poormanscron
 description = Internal scheduler for users without a cron application.
+core = 6.x
Index: poormanscron.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/poormanscron/poormanscron.module,v
retrieving revision 1.18.2.1
diff -u -r1.18.2.1 poormanscron.module
--- poormanscron.module	14 Jan 2007 12:34:37 -0000	1.18.2.1
+++ poormanscron.module	21 Sep 2007 21:17:07 -0000
@@ -1,5 +1,5 @@
 <?php
-// $Id: poormanscron.module,v 1.18.2.1 2007/01/14 12:34:37 uwe Exp $ $Name:  $
+// $Id: poormanscron.module,v 1.18.2.1 2007/01/14 12:34:37 uwe Exp $ $Name: DRUPAL-5 $
 
 /**
  * @file
@@ -9,8 +9,8 @@
 /**
  * Implementation of hook_help().
  */
-function poormanscron_help($section = 'admin/help#poormanscron') {
-  switch ($section) {
+function poormanscron_help($path, $arg) {
+  switch ($path) {
     case 'admin/help#poormanscron':
     case 'admin/settings/modules#description':
     case 'admin/settings/poormanscron':
@@ -54,7 +54,7 @@
         if (module_hook($key, 'cron')) {
           $tt = time();
           module_invoke($key, 'cron');
-          watchdog('cron', "Executed ${key}_cron via poormanscron, took " . format_interval(time() - $tt, 1) . '.', WATCHDOG_NOTICE);
+          watchdog('cron', "Executed @keycron via poormanscron, took @time.", array('@time' => format_interval(time() - $tt, 1), '@keycron' => $key . '_cron') , WATCHDOG_NOTICE);
         }
       }
     }
@@ -65,7 +65,7 @@
 
     // Write a message to the logs if the user wants us to do so.
     if (variable_get('poormanscron_log_cron_runs', 1) == 1) {
-      watchdog('cron', 'Cron run completed (via poormanscron).',
+      watchdog('cron', 'Cron run completed (via poormanscron).', array(),
                WATCHDOG_NOTICE);
     }
 
@@ -95,31 +95,25 @@
 }
 
 /**
- * With hook_settings() obsoleted in 5.0, we now need a menu handler
- * for settings.
+ * With the updated menu system for Drupal 6, we update the menu handler. 
  *
  * @param bool $may_cache
  * @return array
  */
-function poormanscron_menu($may_cache) {
-
-  if ($may_cache) {
-    $items[] = array(
-      'path' => 'admin/settings/poormanscron',
-      'title' => t('Poormanscron'),
-      'description' => t('A module which runs Drupal cron jobs without the cron application.'),
-      'callback' => 'drupal_get_form',
-      'callback arguments' => 'poormanscron_admin_settings',
-      'access' => user_access('administer site configuration'),
-      'type' => MENU_NORMAL_ITEM,
-    );
-  }
-
+function poormanscron_menu() {
+  $items['admin/settings/poormanscron'] = array(
+    'title' => t('Poormanscron'),
+    'description' => t('A module which runs Drupal cron jobs without the cron application.'),
+    'page callback' => 'drupal_get_form',
+    'page arguments' => array('poormanscron_admin_settings'),
+    'access arguments' => array('administer site configuration'),
+    'type' => MENU_NORMAL_ITEM,
+  );
   return $items;
 }
 
 /**
- * 5.0 version of obsolete hook_settings().
+ * 5.0 version of obsolete hook_settings(). Valid in Drupal 6.
  */
 function poormanscron_admin_settings() {
   $form['time_intervals'] = array('#type' => 'fieldset', '#title' => t('Time intervals'));

