From 4e369a6b7ff097afcd0e8b9c1b1a0abeab540df6 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Sat, 8 Nov 2008 16:10:36 +0000 Subject: #243532 follow-up by c960657: Make SimpleTest work again with prefixes. --- includes/common.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/common.inc b/includes/common.inc index 163bed0af..e2e892459 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -682,7 +682,7 @@ function _drupal_log_error($type, $message, $backtrace, $fatal) { // When running inside the testing framework, we relay the errors // to the tested site by the way of HTTP headers. - if (preg_match("/^simpletest\d+/", $GLOBALS['db_prefix']) && !headers_sent() && !defined('SIMPLETEST_DONT_COLLECT_ERRORS')) { + if (preg_match("/^simpletest\d+/", $_SERVER['HTTP_USER_AGENT']) && !headers_sent() && !defined('SIMPLETEST_DONT_COLLECT_ERRORS')) { static $number = 0; $assertion = array( $message, -- cgit v1.2.3