From a938e18a1bd36d887010863817470b690fdbf6f3 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 28 Jul 2009 19:18:08 +0000 Subject: - Patch #491556 by Berdir: completed converting core to DBTNG. Oh my. Kudos to Berdir for this humongous effort. --- modules/simpletest/simpletest.module | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/simpletest') 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) { -- cgit v1.2.3