From 03896eb7d5308c65203d97461c3d71e68c373e85 Mon Sep 17 00:00:00 2001 From: Dongsheng Cai Date: Wed, 19 May 2010 02:49:18 +0000 Subject: [PATCH] MDL-13766, added listing parameters --- repository/local/repository.class.php | 1 + repository/recent/repository.class.php | 1 + repository/upload/repository.class.php | 1 + 3 files changed, 3 insertions(+) diff --git a/repository/local/repository.class.php b/repository/local/repository.class.php index e6e5c2f35f5..64623f12fad 100755 --- a/repository/local/repository.class.php +++ b/repository/local/repository.class.php @@ -66,6 +66,7 @@ class repository_local extends repository { $ret = array(); $ret['dynload'] = true; $ret['nosearch'] = true; + $ret['nologin'] = true; $list = array(); if (!empty($encodedpath)) { diff --git a/repository/recent/repository.class.php b/repository/recent/repository.class.php index c6c7c29af57..bc448b1198f 100755 --- a/repository/recent/repository.class.php +++ b/repository/recent/repository.class.php @@ -100,6 +100,7 @@ class repository_recent extends repository { $ret = array(); $ret['dynload'] = true; $ret['nosearch'] = true; + $ret['nologin'] = true; $list = array(); $files = $this->get_recent_files(0, $this->number); diff --git a/repository/upload/repository.class.php b/repository/upload/repository.class.php index 8e0f362d8bd..570ec06fb00 100755 --- a/repository/upload/repository.class.php +++ b/repository/upload/repository.class.php @@ -79,6 +79,7 @@ class repository_upload extends repository { $ret = array(); $ret['nologin'] = true; $ret['nosearch'] = true; + $ret['norefresh'] = true; // define upload form in file picker $ret['upload'] = array('label'=>get_string('attachment', 'repository'), 'id'=>'repo-form');