diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2008-11-08 16:10:36 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2008-11-08 16:10:36 +0000 |
commit | 4e369a6b7ff097afcd0e8b9c1b1a0abeab540df6 (patch) | |
tree | 3b997201e9a7f8f71878ad715eac8ec1ed1bfbc7 | |
parent | 42d720992932ab8e436b5d6b93b01b620307185c (diff) | |
download | brdo-4e369a6b7ff097afcd0e8b9c1b1a0abeab540df6.tar.gz brdo-4e369a6b7ff097afcd0e8b9c1b1a0abeab540df6.tar.bz2 |
#243532 follow-up by c960657: Make SimpleTest work again with prefixes.
-rw-r--r-- | includes/common.inc | 2 |
1 files changed, 1 insertions, 1 deletions
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, |