From: martin Date: Wed, 28 Aug 2002 13:20:20 +0000 (+0000) Subject: Slight improvements to documentation X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=5a347793070ef16d9d51eb864bfa39f0b789eb3f;p=moodle.git Slight improvements to documentation --- diff --git a/lang/en/docs/module_files.txt b/lang/en/docs/module_files.txt index e9036fd1f7..cd1cc03f14 100644 --- a/lang/en/docs/module_files.txt +++ b/lang/en/docs/module_files.txt @@ -1,15 +1,18 @@ ABOUT THIS DIRECTORY -------------------- -DO NOT CHANGE, RENAME OR MOVE ANY OF THE FILES IN THIS DIRECTORY -unless you really know what you are doing. +DO NOT CHANGE, RENAME OR MOVE ANY OF THE FILES +IN THIS DIRECTORY unless you REALLY know what +you are doing. Changing these files could mess up your course. -This directory contains files uploaded to your course within -particular modules (mostly by students), such as assignment -submissions and forum attachments. +This directory contains files uploaded to your +course within particular modules (mostly by +students), such as assignment submissions and +forum attachments. -The names of the directories and files within this directory -are very specific and automatically maintained by Moodle. +The names of the directories and files within +this directory are very specific and are +automatically maintained by Moodle. diff --git a/mod/assignment/version.php b/mod/assignment/version.php index 7d53002032..a2dbca0f86 100644 --- a/mod/assignment/version.php +++ b/mod/assignment/version.php @@ -5,7 +5,7 @@ // This fragment is called by /admin/index.php //////////////////////////////////////////////////////////////////////////////// -$module->version = 2002082805; +$module->version = 2002082806; $module->cron = 60; function assignment_upgrade($oldversion) { @@ -59,9 +59,11 @@ function assignment_upgrade($oldversion) { execute_sql(" ALTER TABLE `assignment_submissions` CHANGE `id` `id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT "); } - if ($oldversion < 2002082805) { + if ($oldversion < 2002082806) { // assignment file area was moved, so rename all the directories in existing courses + notify("Moving location of assignment files..."); + $basedir = opendir("$CFG->dataroot"); while ($dir = readdir($basedir)) { if ($dir == "." || $dir == ".." || $dir == "users") {