MDL-34428 Private files repository should have a 'manage' link
authorMarina Glancy <marina@moodle.com>
Fri, 20 Jul 2012 05:32:47 +0000 (13:32 +0800)
committerMarina Glancy <marina@moodle.com>
Fri, 20 Jul 2012 05:32:47 +0000 (13:32 +0800)
repository/user/lib.php

index 98c7384..c7d7f3c 100644 (file)
@@ -56,6 +56,8 @@ class repository_user extends repository {
         $ret['dynload'] = true;
         $ret['nosearch'] = true;
         $ret['nologin'] = true;
         $ret['dynload'] = true;
         $ret['nosearch'] = true;
         $ret['nologin'] = true;
+        $manageurl = new moodle_url('/user/files.php');
+        $ret['manage'] = $manageurl->out();
         $list = array();
 
         if (!empty($encodedpath)) {
         $list = array();
 
         if (!empty($encodedpath)) {