"MDL-15351, display user private files"

This commit is contained in:
Dongsheng Cai
2010-05-03 02:31:26 +00:00
parent 198ff49840
commit 97e9c8d68d
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ $string['areacourseintro'] = 'Course introduction';
$string['arearoot'] = 'System';
$string['areauserdraft'] = 'Drafts';
$string['areauserbackup'] = 'User backup';
$string['areauserpersonal'] = 'Personal';
$string['areauserpersonal'] = 'User private';
$string['areauserprofile'] = 'Profile';
$string['attachedfiles'] = 'Attached files';
$string['attachment'] = 'Attachment';
+3
View File
@@ -105,6 +105,9 @@ class file_info_user extends file_info {
$children[] = $child;
}
if ($child = $this->browser->get_file_info(get_context_instance(CONTEXT_USER, $USER->id), 'user_private', 0)) {
$children[] = $child;
}
// do not list user_draft here - it is browsable only if you know the draft itemid ;-)
return $children;