From: scyrma Date: Thu, 28 Aug 2008 07:42:37 +0000 (+0000) Subject: MDL-15351: fix higher level of path information for local repository - begin testing. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=ba64f5cd8c24b26c2cc8a84bfe9cc94b232efcc1;p=moodle.git MDL-15351: fix higher level of path information for local repository - begin testing. --- diff --git a/repository/local/repository.class.php b/repository/local/repository.class.php index b1cbbcd00c..b73ddcb14e 100755 --- a/repository/local/repository.class.php +++ b/repository/local/repository.class.php @@ -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 {