-
'.$strnofilesattached.'
+
'.$strdndenabledinbox.'
'.$strdroptoupload.'
diff --git a/lang/en/moodle.php b/lang/en/moodle.php
index 073d3eb405f..224b7411f87 100644
--- a/lang/en/moodle.php
+++ b/lang/en/moodle.php
@@ -466,7 +466,7 @@ $string['displayonpage'] = 'Display on page';
$string['dndenabled'] = 'Drag and drop available';
$string['dndenabled_help'] = 'You can drag one or more files from your desktop and drop them onto the box below to upload them.
Note: this may not work with other web browsers';
$string['dndenabled_insentence'] = 'drag and drop available';
-$string['dndenabled_inbox'] = 'drag and drop files here to upload them';
+$string['dndenabled_inbox'] = 'You can drag and drop files here to add them.';
$string['dnduploadwithoutcontent'] = 'This upload does not have any content';
$string['dndworkingfiletextlink'] = 'Drag and drop files, text or links onto course sections to upload them';
$string['dndworkingfilelink'] = 'Drag and drop files or links onto course sections to upload them';
diff --git a/lib/outputrenderers.php b/lib/outputrenderers.php
index 80f20c65824..697ca6f383c 100644
--- a/lib/outputrenderers.php
+++ b/lib/outputrenderers.php
@@ -2025,7 +2025,9 @@ class core_renderer extends renderer_base {
$currentfile = $options->currentfile;
if (empty($currentfile)) {
- $currentfile = get_string('nofilesattached', 'repository');
+ $currentfile = '';
+ } else {
+ $currentfile .= ' - ';
}
if ($options->maxbytes) {
$size = $options->maxbytes;
@@ -2056,7 +2058,7 @@ EOD;
$html .= <<
-
$currentfile - $strdndenabled
+
$currentfile$strdndenabled