From bfe5f847b4136b37620e3d581e7b50bf0f22dfe4 Mon Sep 17 00:00:00 2001 From: skodak Date: Fri, 8 May 2009 08:52:42 +0000 Subject: [PATCH] MDL-18492 it is not possible to do anything with moddata directory anymore - this is too dangerous for many people ;-) --- files/index.php | 12 ++++++++++-- lib/editor/htmlarea/coursefiles.php | 6 +++++- 2 files changed, 15 insertions(+), 3 deletions(-) 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", " ");