From 4237d014e9599fb54243c87f23a003df012b29a7 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Sat, 11 Sep 2010 21:14:32 +0000 Subject: #874326 by rfay, pwolanin, chx: Fixed Invalid scheme fails to halt processing of a stream request. --- modules/simpletest/drupal_web_test_case.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/simpletest/drupal_web_test_case.php') diff --git a/modules/simpletest/drupal_web_test_case.php b/modules/simpletest/drupal_web_test_case.php index 323825ac2..36568a8d4 100644 --- a/modules/simpletest/drupal_web_test_case.php +++ b/modules/simpletest/drupal_web_test_case.php @@ -939,7 +939,7 @@ class DrupalWebTestCase extends DrupalTestCase { $files = array(); // Make sure type is valid. if (in_array($type, array('binary', 'html', 'image', 'javascript', 'php', 'sql', 'text'))) { - $files = file_scan_directory(variable_get('file_public_path', conf_path() . '/files'), '/' . $type . '\-.*/'); + $files = file_scan_directory('public://', '/' . $type . '\-.*/'); // If size is set then remove any files that are not of that size. if ($size !== NULL) { -- cgit v1.2.3