? boost-512314.patch
? boost-551014.patch
Index: boost.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/boost/boost.install,v
retrieving revision 1.2.2.1.2.3.2.30
diff -u -p -r1.2.2.1.2.3.2.30 boost.install
--- boost.install	13 Aug 2009 06:48:14 -0000	1.2.2.1.2.3.2.30
+++ boost.install	29 Aug 2009 04:34:11 -0000
@@ -98,11 +98,19 @@ function boost_requirements($phase) {
       elseif ($htaccess && count(explode("%{REQUEST_URI}$char%{QUERY_STRING}\.html", $htaccess)) < 3) {
         $requirements['boost'] = array(
           'title'       => $t('Boost'),
-          'description' => $t('.htaccess file does not contain the boost specific rewrite rules, or the rewrite rules have changed and they need to be updated. Get rules: <a href"@url">Boost Apache .htaccess settings generation</a>.', array('@url' => url('admin/settings/performance/boost#edit-boost-verbose'))),
+          'description' => $t('.htaccess file does not contain the boost specific rewrite rules, or the rewrite rules have changed and they need to be updated. Get rules: <a href="@url">Boost Apache .htaccess settings generation</a>.', array('@url' => url('admin/settings/performance/boost#edit-boost-verbose'))),
           'severity'    => REQUIREMENT_ERROR,
           'value'       => $t('.htaccess file'),
         );
       }
+      elseif (!boost_chk_module_versions()) {
+        $requirements['boost'] = array(
+          'title'       => $t('Boost'),
+          'description' => $t('You need to get a newer version of <a href="@url">poormanscron</a>, most likely the lastest dev.', array('@url' => "http://drupal.org/project/poormanscron")),
+          'severity'    => REQUIREMENT_ERROR,
+          'value'       => $t('poormanscron is the wrong version'),
+        );
+      }
       else {
         $requirements['boost'] = array(
           'title'       => $t('Boost'),
@@ -116,6 +124,25 @@ function boost_requirements($phase) {
 }
 
 /**
+ * Check for bad versions of modules.
+ */
+function boost_chk_module_versions() {
+  // chk poormanscron
+  if (module_exists('poormanscron')) {
+    $info = unserialize(db_result(db_query("SELECT info FROM {system} WHERE name LIKE 'poormanscron'")));
+    if ($info['version'] == '6.x-1.0') {
+      return FALSE;
+    }
+    else {
+      return TRUE;
+    }
+  }
+  else {
+    return TRUE;
+  }
+}
+
+/**
  * Implementation of hook_schema().
  */
 function boost_schema() {
