summaryrefslogtreecommitdiffstats
path: root/system/helpers/file_helper.php
diff options
context:
space:
mode:
authorDerek Jones <derek.jones@ellislab.com>2009-02-10 22:59:20 +0100
committerDerek Jones <derek.jones@ellislab.com>2009-02-10 22:59:20 +0100
commit63dc27f30ed9327060e7e423a99b67a2f19b8f36 (patch)
tree59d70d34849973d610c44c777c5991a6d1551733 /system/helpers/file_helper.php
parent09a45be4b33751c1bd481f4301363db723b6881b (diff)
declared $_filedata as static so it can work properly with recursion through subdirectories
http://codeigniter.com/bug_tracker/bug/6592/
Diffstat (limited to 'system/helpers/file_helper.php')
-rw-r--r--system/helpers/file_helper.php2
1 files changed, 1 insertions, 1 deletions
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))