Fixing drift between CVS and git

This commit is contained in:
Moodle HQ git importer
2009-11-23 01:33:09 +00:00
parent dcb7585070
commit 2b7cefa2f5
12 changed files with 83 additions and 83 deletions
+1 -1
View File
@@ -140,7 +140,7 @@ function assignment_get_content_for_index(&$assignment) {
} elseif ($submitted->source = 'files'){
$SUBMITTED = opendir($submitted->path);
while($entry = readdir($SUBMITTED)){
if (preg_match("/^\./", $entry)) continue; // exclude hidden and dirs . and ..
if (ereg("^\.", $entry)) continue; // exclude hidden and dirs . and ..
$path = "{$submitted->path}/{$entry}";
$documents[] = assignment_get_physical_file($submission, $assignment, $cm, $path, $context_id, $documents);
mtrace("finished attachement $path for {$submission->authors} in assignement {$assignment->name}");