diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-07-28 19:18:08 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-07-28 19:18:08 +0000 |
commit | a938e18a1bd36d887010863817470b690fdbf6f3 (patch) | |
tree | adbc7edb165255a47739fdbe7e0184c241f6340c /modules/simpletest | |
parent | ff8b0618f5892d165720453efcd318b0d85a6f8c (diff) | |
download | brdo-a938e18a1bd36d887010863817470b690fdbf6f3.tar.gz brdo-a938e18a1bd36d887010863817470b690fdbf6f3.tar.bz2 |
- Patch #491556 by Berdir: completed converting core to DBTNG. Oh my. Kudos to Berdir for this humongous effort.
Diffstat (limited to 'modules/simpletest')
-rw-r--r-- | modules/simpletest/simpletest.module | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/simpletest/simpletest.module b/modules/simpletest/simpletest.module index 6735982f1..c7bc1516a 100644 --- a/modules/simpletest/simpletest.module +++ b/modules/simpletest/simpletest.module @@ -221,10 +221,10 @@ function _simpletest_batch_finished($success, $results, $operations, $elapsed) { * The test ID to read log file for. */ function simpletest_log_read($test_id) { - $last_prefix = db_result(db_query('SELECT last_prefix FROM {simpletest_test_id} WHERE test_id = :test_id', array(':test_id' => $test_id))); + $last_prefix = db_query('SELECT last_prefix FROM {simpletest_test_id} WHERE test_id = :test_id', array(':test_id' => $test_id))->fetchField(); $last_prefix = substr($last_prefix, 10); - $test_class = db_result(db_query('SELECT test_class FROM {simpletest} WHERE test_id = :test_id ORDER BY message_id', array(':test_id' => $test_id))); + $test_class = db_query('SELECT test_class FROM {simpletest} WHERE test_id = :test_id ORDER BY message_id', array(':test_id' => $test_id))->fetchField(); $log = file_directory_path() . "/simpletest/$last_prefix/error.log"; if (file_exists($log)) { foreach (file($log) as $line) { |