MDL-15351: fix higher level of path information for local repository - begin testing.

This commit is contained in:
scyrma
2008-08-28 07:42:37 +00:00
parent 14482ff99e
commit ba64f5cd8c
+1 -5
View File
@@ -49,12 +49,8 @@ class repository_local extends repository {
$filearea = null;
if ($fileinfo = $browser->get_file_info($this->context, $filearea, $itemid, $path, $filename)) {
$level = $fileinfo->get_parent();
$path = array();
while ($level) {
$path[] = $level->get_visible_name();
$level = $level->get_parent();
}
$path[] = $fileinfo->get_visible_name();
$ret['path'] = array_reverse($path);
$ret['list'] = $this->build_tree($fileinfo, $search);
} else {