MDL-23367 First cut at moving the private files interface under /user. Has a few small bugs, working on them.

This commit is contained in:
Martin Dougiamas
2010-07-19 13:21:16 +00:00
parent bfbca63de3
commit 82af55d7e3
8 changed files with 276 additions and 4 deletions
+2 -2
View File
@@ -1532,8 +1532,8 @@ class global_navigation extends navigation_node {
// TODO: Private file capability check
if ($iscurrentuser) {
$url = new moodle_url('/blocks/private_files/edit.php');
$usernode->add(get_string('privatefiles', 'block_private_files'), $url, self::TYPE_SETTING);
$url = new moodle_url('/user/files.php');
$usernode->add(get_string('myfiles'), $url, self::TYPE_SETTING);
}
// Add a node to view the users notes if permitted