Commit 4e369a6b authored by webchick's avatar webchick
Browse files

#243532 follow-up by c960657: Make SimpleTest work again with prefixes.

parent 42d72099
......@@ -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(
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment