lib/docman/docroot_config.rb in docman-0.0.19 vs lib/docman/docroot_config.rb in docman-0.0.20

- old
+ new

@@ -25,11 +25,11 @@ end def structure_build(path, prefix = '', parent = nil) return unless File.file? File.join(path, 'info.yaml') - children = {} + children = [] info = YAML::load_file(File.join(path, 'info.yaml')) @raw_infos[File.basename path] = YAML::load_file(File.join(path, 'info.yaml')) unless info['status'].nil? return if info['status'] == 'disabled' end @@ -56,10 +56,10 @@ next if (entry == '..' || entry == '.') full_path = File.join(path, entry) if File.directory?(full_path) dir_hash = structure_build(full_path, prefix, i) unless dir_hash == nil - children[dir_hash['order']] = dir_hash + children << dir_hash end end end i end \ No newline at end of file