diff --git a/files/index.php b/files/index.php index 6f56974e6e6..15a5debcd82 100644 --- a/files/index.php +++ b/files/index.php @@ -781,11 +781,19 @@ function displaydir ($wdir) { $filesafe = rawurlencode($dir); $filesize = display_size(get_directory_size("$fullpath/$dir")); $filedate = userdate(filemtime($filename), get_string("strftimedatetime")); - print_cell("center", "", 'checkbox'); + if ($wdir.$dir === '/moddata') { + print_cell(); + } else { + print_cell("center", "", 'checkbox'); + } print_cell("left", "pixpath/f/folder.gif\" class=\"icon\" alt=\"$strfolder\" /> ".htmlspecialchars($dir)."", 'name'); print_cell("right", $filesize, 'size'); print_cell("right", $filedate, 'date'); - print_cell("right", "$strrename", 'commands'); + if ($wdir.$dir === '/moddata') { + print_cell(); + } else { + print_cell("right", "$strrename", 'commands'); + } } echo ""; diff --git a/lib/editor/htmlarea/coursefiles.php b/lib/editor/htmlarea/coursefiles.php index 4c04eedb3ea..4f7441f627e 100644 --- a/lib/editor/htmlarea/coursefiles.php +++ b/lib/editor/htmlarea/coursefiles.php @@ -717,7 +717,11 @@ function displaydir ($wdir) { echo ""; if ($usecheckboxes) { - print_cell("center", ""); + if ($fileurl === '/moddata') { + print_cell(); + } else { + print_cell("center", ""); + } } print_cell("left", "pixpath/f/folder.gif\" class=\"icon\" alt=\"".get_string('folder')."\" /> ".htmlspecialchars($dir).""); print_cell("right", " ");