Commit 25b88c61 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Fix feedback attachment message


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent fcd7600d
......@@ -37,6 +37,7 @@ $string['Attachments'] = "Attachments";
$string['feedback'] = 'Feedback';
$string['feedbackattachdirname'] = 'commentattachments';
$string['feedbackattachdirdesc'] = 'Files attached to comments on your portfolio';
$string['feedbackattachmessage'] = 'The attached file(s) have been added to your %s folder';
$string['feedbackchangedtoprivate'] = 'Feedback changed to private';
$string['feedbackonviewbyuser'] = 'Feedback on %s by %s';
$string['feedbacksubmitted'] = 'Feedback submitted';
......
......@@ -230,13 +230,10 @@ class ArtefactTypeComment extends ArtefactType {
$item->date = format_date(strtotime($item->ctime), 'strftimedatetime');
if (!empty($item->attachments)) {
if ($data->isowner) {
// @todo: move strings to comment artefact
// @todo: files attached to comments are no longer always 'assessment' files,
// so change the string.
$item->attachmessage = get_string(
'feedbackattachmessage',
'view',
get_string('feedbackattachdirname', 'view')
'artefact.comment',
get_string('feedbackattachdirname', 'artefact.comment')
);
}
foreach ($item->attachments as &$a) {
......
......@@ -109,7 +109,6 @@ $string['attachedfileaddedtofolder'] = "The attached file %s has been added to y
$string['complaint'] = 'Complaint';
$string['date'] = 'Date';
$string['feedback'] = 'Feedback';
$string['feedbackattachmessage'] = 'The attached file has been added to your %s folder';
$string['feedbackonthisartefactwillbeprivate'] = 'Feedback on this artefact will only be visible to the owner.';
$string['nopublicfeedback'] = 'No public feedback';
$string['notifysiteadministrator'] = 'Notify site administrator';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment