MDL-13766, added listing parameters

This commit is contained in:
Dongsheng Cai 2010-05-19 02:49:18 +00:00
parent f856106b10
commit 03896eb7d5
3 changed files with 3 additions and 0 deletions

View File

@ -66,6 +66,7 @@ class repository_local extends repository {
$ret = array(); $ret = array();
$ret['dynload'] = true; $ret['dynload'] = true;
$ret['nosearch'] = true; $ret['nosearch'] = true;
$ret['nologin'] = true;
$list = array(); $list = array();
if (!empty($encodedpath)) { if (!empty($encodedpath)) {

View File

@ -100,6 +100,7 @@ class repository_recent extends repository {
$ret = array(); $ret = array();
$ret['dynload'] = true; $ret['dynload'] = true;
$ret['nosearch'] = true; $ret['nosearch'] = true;
$ret['nologin'] = true;
$list = array(); $list = array();
$files = $this->get_recent_files(0, $this->number); $files = $this->get_recent_files(0, $this->number);

View File

@ -79,6 +79,7 @@ class repository_upload extends repository {
$ret = array(); $ret = array();
$ret['nologin'] = true; $ret['nologin'] = true;
$ret['nosearch'] = true; $ret['nosearch'] = true;
$ret['norefresh'] = true;
// define upload form in file picker // define upload form in file picker
$ret['upload'] = array('label'=>get_string('attachment', 'repository'), 'id'=>'repo-form'); $ret['upload'] = array('label'=>get_string('attachment', 'repository'), 'id'=>'repo-form');