Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-33669 equella: implement the manage link

  • Loading branch information...
commit 82b287522edcaaba734ae4820468ce07fef8ab3d 1 parent a5f6ea2
@nickread nickread authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 repository/equella/lib.php
View
6 repository/equella/lib.php
@@ -93,6 +93,11 @@ public function get_listing($path = null, $page = null) {
. '&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 @@ public function get_listing($path = null, $page = null) {
$list['nologin'] = true;
$list['nosearch'] = true;
$list['norefresh'] = true;
+ $list['manage'] = $manageurl;
return $list;
}
Please sign in to comment.
Something went wrong with that request. Please try again.