Slight improvements to documentation

This commit is contained in:
martin 2002-08-28 13:20:20 +00:00
parent ca4f8eb868
commit 5a34779307
2 changed files with 14 additions and 9 deletions

View File

@ -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.

View File

@ -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") {