? .directory
? boost-829674.patch
Index: boost.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/boost/boost.install,v
retrieving revision 1.2.2.1.2.3.2.96
diff -u -p -r1.2.2.1.2.3.2.96 boost.install
--- boost.install	11 May 2010 22:13:02 -0000	1.2.2.1.2.3.2.96
+++ boost.install	1 Jul 2010 20:49:53 -0000
@@ -102,7 +102,8 @@ function boost_requirements($phase) {
       $htaccess = stristr($_SERVER["SERVER_SOFTWARE"], 'apache') ? file_get_contents(dirname($_SERVER["SCRIPT_FILENAME"]) . '/.htaccess') : FALSE;
       if (BOOST_CRAWL_ON_CRON) {
         $crawler_response = drupal_http_request(BOOST_CRAWLER_SELF . '&test=1');
-        $crawler_response = $crawler_response->code;
+        $crawler_code = $crawler_response->code;
+        $crawler_error = $crawler_response->error;
       }
       $robots = drupal_http_request('http://' . check_plain($_SERVER['HTTP_HOST']) . '/robots.txt');
       if ($robots->code == 200) {
@@ -181,8 +182,8 @@ function boost_requirements($phase) {
           'value'       => $t('Boost Crawler Key Not Found.'),
         );
       }
-      elseif (isset($crawler_response) && $crawler_response != 200) {
-        switch ($crawler_response) {
+      elseif (isset($crawler_code) && $crawler_code != 200) {
+        switch ($crawler_code) {
           case 503:
             $description = $t('Your site is in maintenance mode, crawler will not work with your site in this state. Take site out of maintenance mode if you wish to use the crawler. Running cron if your site is not in maintenance mode might make this error eventually clear.');
             $severity = REQUIREMENT_WARNING;
@@ -192,7 +193,7 @@ function boost_requirements($phase) {
             $severity = REQUIREMENT_ERROR;
             break;
           default:
-            $description = $t('<a href="!url">Clear cached data</a> & run cron; if error priests <a href="@link">open an issue</a> on the Boost issue queue. Got a %num response from the URL.', array('!url' => url('admin/settings/performance'), '@link' => 'http://drupal.org/node/add/project-issue/boost', '%num' => $crawler_response));
+            $description = $t('<a href="!url">Clear cached data</a> & run cron; if error priests <a href="@link">open an issue</a> on the Boost issue queue. Got a %num response from the URL.', array('!url' => url('admin/settings/performance'), '@link' => 'http://drupal.org/node/add/project-issue/boost', '%num' => $crawler_code));
             $severity = REQUIREMENT_ERROR;
             break;
         }
@@ -200,7 +201,7 @@ function boost_requirements($phase) {
           'title'       => $t('Boost'),
           'description' => $description,
           'severity'    => $severity,
-          'value'       => $t('Boost crawler did not get a 200 response; @number returned instead.', array('@number' => $crawler_response)),
+          'value'       => $t('Boost crawler did not get a 200 response; @number returned instead. @error', array('@number' => $crawler_code, '@error' => $crawler_error)),
         );
       }
       if (!BOOST_ENABLED) {
