Skip to content
Permalink
Browse files

MDL-15351: correcting context and list all available files

  • Loading branch information...
scyrma
scyrma committed Sep 10, 2008
1 parent d9dc215 commit bf304d495be40dcb27dc0d7c1f89f5b06b2cd59e
Showing with 2 additions and 2 deletions.
  1. +2 −2 repository/local/repository.class.php
@@ -60,8 +60,8 @@ public function get_listing($encodedpath = '', $search = '') {
}
$count = 0;
if ($fileinfo = $browser->get_file_info($this->context, $filearea, $itemid, $path, $filename)) {
if ($fileinfo = $browser->get_file_info(get_system_context(), $filearea, $itemid, $path, $filename)) {
$ret['path'] = array();
$params = $fileinfo->get_params();
$filearea = $params['filearea'];

0 comments on commit bf304d4

Please sign in to comment.
You can’t perform that action at this time.