From ba64f5cd8c24b26c2cc8a84bfe9cc94b232efcc1 Mon Sep 17 00:00:00 2001 From: scyrma Date: Thu, 28 Aug 2008 07:42:37 +0000 Subject: [PATCH] MDL-15351: fix higher level of path information for local repository - begin testing. --- repository/local/repository.class.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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 { -- 2.39.5