? boost-657820.patch
? boost-657960.1.patch
? boost-657960.patch
Index: boost.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/boost/boost.module,v
retrieving revision 1.3.2.2.2.5.2.280
diff -u -p -r1.3.2.2.2.5.2.280 boost.module
--- boost.module	12 Dec 2009 23:09:49 -0000	1.3.2.2.2.5.2.280
+++ boost.module	13 Dec 2009 00:37:29 -0000
@@ -290,6 +290,10 @@ function boost_exit($destination = NULL)
       exit(header('Location: ' . $destination));
     }
   }
+  // Set watchdog error if headers already sent
+  if (BOOST_ASYNCHRONOUS_OUTPUT && $GLOBALS['_boost_cache_this'] && headers_sent($filename, $linenum) && BOOST_VERBOSE >= 5) {
+    watchdog('boost', 'Headers already sent in @filename on line @linenum. Asynchronous Operation will be disabled.', array('@filename' => $filename, '@linenum' => $linenum));
+  }
 }
 
 /**
@@ -1349,9 +1353,6 @@ function _boost_ob_handler() {
     if (BOOST_VERBOSE >= 7) {
       watchdog('boost', 'Debug: _boost_ob_handler() <br />HTTP Info: !status - !types <br />Path: !path <br />Content Container: !callback <br />Content Type: !type <br />ID: !id <br />Cache This: !cache.', array('!status' => $status, '!types' => implode(', ', $types), '!path' => boost_file_path($GLOBALS['_boost_path']), '!callback' => $GLOBALS['_boost_router_item']['page_callback'], '!type' => $GLOBALS['_boost_router_item']['page_type'], '!id' => $GLOBALS['_boost_router_item']['page_id'], '!cache' => $GLOBALS['_boost_cache_this'] ? 'TRUE' : 'FALSE'));
     }
-    if (headers_sent($filename, $linenum) && BOOST_VERBOSE >= 5) {
-      watchdog('boost', 'Headers already sent in @filename on line @linenum. Asynchronous Operation will be disabled.', array('@filename' => $filename, '@linenum' => $linenum));
-    }
     $types = array_pop($types);
     if (stristr($types, 'text/javascript')) {
       if ($status == 200 & $GLOBALS['_boost_cache_this']) {
