diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-01-19 10:46:52 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-01-19 10:46:52 +0000 |
commit | d20e4571215b379676bf95898232717b121ad95b (patch) | |
tree | aa181045614138f925ccc74587a70c870e2f1ac1 /modules/simpletest/simpletest.module | |
parent | 8cef09a7e6c970054d44117020afc88b5ee2bd41 (diff) | |
download | brdo-d20e4571215b379676bf95898232717b121ad95b.tar.gz brdo-d20e4571215b379676bf95898232717b121ad95b.tar.bz2 |
- Patch #201122 by c960657, Moshe Weitzman: never write anonymous sessions, unless something has been written to . This is an important performance improvements -- as long as you use modules that use carefully. It might be good to report some analytics about this in the performance settings page so administrators can see if there is a 'broken' module.
Diffstat (limited to 'modules/simpletest/simpletest.module')
-rw-r--r-- | modules/simpletest/simpletest.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/simpletest/simpletest.module b/modules/simpletest/simpletest.module index 783371b54..4054696c4 100644 --- a/modules/simpletest/simpletest.module +++ b/modules/simpletest/simpletest.module @@ -436,7 +436,7 @@ function _simpletest_batch_operation($test_list_init, $test_id, &$context) { function _simpletest_batch_finished($success, $results, $operations, $elapsed) { if (isset($results['test_id'])) { - $_SESSION['test_id'] = $results['test_id']; + drupal_set_session('test_id', $results['test_id']); } if ($success) { drupal_set_message(t('The tests finished in @elapsed.', array('@elapsed' => $elapsed))); |