From 63dc27f30ed9327060e7e423a99b67a2f19b8f36 Mon Sep 17 00:00:00 2001 From: Derek Jones Date: Tue, 10 Feb 2009 21:59:20 +0000 Subject: declared $_filedata as static so it can work properly with recursion through subdirectories http://codeigniter.com/bug_tracker/bug/6592/ --- system/helpers/file_helper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'system/helpers') diff --git a/system/helpers/file_helper.php b/system/helpers/file_helper.php index 8078d96fa..b0c554658 100644 --- a/system/helpers/file_helper.php +++ b/system/helpers/file_helper.php @@ -223,7 +223,7 @@ if ( ! function_exists('get_dir_file_info')) { function get_dir_file_info($source_dir, $include_path = FALSE, $_recursion = FALSE) { - $_filedata = array(); + static $_filedata = array(); $relative_path = $source_dir; if ($fp = @opendir($source_dir)) -- cgit v1.2.3-24-g4f1b