MDL-33669 equella: implement the manage link

This commit is contained in:
nread 2012-06-12 15:49:23 +10:00
parent a5f6ea2e88
commit 82b287522e

View File

@ -93,6 +93,11 @@ class repository_equella extends repository {
. '&attachmentUuidUrls=true'
. '&options='.urlencode($this->get_option('equella_options') . $mimetypesstr)
. $restrict;
$manageurl = $this->get_option('equella_url');
$manageurl = str_ireplace('signon.do', 'logon.do', $manageurl);
$manageurl = $this->appendtoken($manageurl);
$list = array();
$list['object'] = array();
$list['object']['type'] = 'text/html';
@ -100,6 +105,7 @@ class repository_equella extends repository {
$list['nologin'] = true;
$list['nosearch'] = true;
$list['norefresh'] = true;
$list['manage'] = $manageurl;
return $list;
}