? boost-428942.1.patch
Index: boost.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/boost/boost.install,v
retrieving revision 1.2.2.1.2.3.2.8
diff -u -p -r1.2.2.1.2.3.2.8 boost.install
--- boost.install	1 Jun 2009 17:47:03 -0000	1.2.2.1.2.3.2.8
+++ boost.install	2 Jun 2009 00:12:26 -0000
@@ -56,27 +56,37 @@ function boost_requirements($phase) {
   switch ($phase) {
     case 'runtime':
       $cache_directory = variable_get('boost_file_path', boost_cache_directory(NULL, FALSE));
+      $htaccess = file_get_contents('.htaccess');
+
       if ($cache_directory != boost_cache_directory(NULL, FALSE)) {
         $requirements['boost'] = array(
-          'title' => $t('Boost'),
-          'description' => $t('!url: is not set to the default(!default). ', array('!url' => l('Cache file path', 'admin/settings/performance'), '!default' => boost_cache_directory(NULL, FALSE))),
-          'severity' => REQUIREMENT_WARNING,
-          'value' => $t('Cache file path'),
+          'title'       => $t('Boost'),
+          'description' => $t('!url: is not set to the default(!default). ', array('!url' => l('Cache file path', 'admin/settings/performance'), '!default'    => boost_cache_directory(NULL, FALSE))),
+          'severity'    => REQUIREMENT_WARNING,
+          'value'       => $t('Cache file path'),
         );
       }
-      else if ((!is_dir($cache_directory) || !is_writable($cache_directory))) {
+      else if (!is_dir($cache_directory) || !is_writable($cache_directory)) {
         $requirements['boost'] = array(
-          'title' => $t('Boost'),
+          'title'       => $t('Boost'),
           'description' => $t('!cache_dir: does not exist, or is not writable', array('!cache_dir' => $cache_directory)),
-          'severity' => REQUIREMENT_ERROR,
-          'value' => $t('Cache file path'),
+          'severity'    => REQUIREMENT_ERROR,
+          'value'       => $t('Cache file path'),
+        );
+      }
+      else if ($htaccess && count(explode("%{REQUEST_URI}_%{QUERY_STRING}.html",$htaccess)) < 5) {
+        $requirements['boost'] = array(
+          'title'       => $t('Boost'),
+          'description' => $t('.htaccess file does not contain the boost specific rewrite rules.', array()),
+          'severity'    => REQUIREMENT_ERROR,
+          'value'       => $t('.htaccess file'),
         );
       }
       else {
         $requirements['boost'] = array(
-          'title' => $t('Boost'),
-          'severity' => REQUIREMENT_OK,
-          'value' => $t(''),
+          'title'       => $t('Boost'),
+          'severity'    => REQUIREMENT_OK,
+          'value'       => t(''),
         );
       }
     break;
