From 97e9c8d68dd220f2d6064b7846b4fc46cb18bdb6 Mon Sep 17 00:00:00 2001 From: Dongsheng Cai Date: Mon, 3 May 2010 02:31:26 +0000 Subject: [PATCH] "MDL-15351, display user private files" --- lang/en/repository.php | 2 +- lib/file/file_info_user.php | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lang/en/repository.php b/lang/en/repository.php index cedd27673ea..584cfb4d53c 100644 --- a/lang/en/repository.php +++ b/lang/en/repository.php @@ -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'; diff --git a/lib/file/file_info_user.php b/lib/file/file_info_user.php index 1e00b1597d2..000cabdd7dc 100644 --- a/lib/file/file_info_user.php +++ b/lib/file/file_info_user.php @@ -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;