diff options
author | Andrey Andreev <narf@bofh.bg> | 2012-11-06 14:50:17 +0100 |
---|---|---|
committer | Andrey Andreev <narf@bofh.bg> | 2012-11-06 14:50:17 +0100 |
commit | e8b8904bdfd6f8320beb67fb6daa96ee14c3b917 (patch) | |
tree | 5f5af187f526a4f889c06f3b069a419179d27982 /system/helpers/directory_helper.php | |
parent | ac68a3cadae94324d7de00bcb183ba19025e9ca2 (diff) |
directory_map() ... the final one
Diffstat (limited to 'system/helpers/directory_helper.php')
-rw-r--r-- | system/helpers/directory_helper.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/system/helpers/directory_helper.php b/system/helpers/directory_helper.php index e90c92d79..49dcfc8a9 100644 --- a/system/helpers/directory_helper.php +++ b/system/helpers/directory_helper.php @@ -69,9 +69,10 @@ if ( ! function_exists('directory_map')) continue; } + @is_dir($source_dir.$file) AND $file .= DIRECTORY_SEPARATOR; + if (($directory_depth < 1 OR $new_depth > 0) && @is_dir($source_dir.$file)) { - $file .= DIRECTORY_SEPARATOR; $filedata[$file] = directory_map($source_dir.$file, $new_depth, $hidden); } else |