Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Bug #6225 - Moodle bug #4658 Breaks assignment type: Upload Single; m…
…erged from MOODLE_16_STABLE
  • Loading branch information
skodak committed Aug 9, 2006
1 parent dba4e6d commit c853b39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/assignment/lib.php
Expand Up @@ -1494,7 +1494,7 @@ function count_user_files($userid) {

$filearea = $this->file_area_name($userid);

if ( is_dir($filearea) && $basedir = $this->file_area($userid)) {
if ( is_dir($CFG->dataroot.'/'.$filearea) && $basedir = $this->file_area($userid)) {
if ($files = get_directory_list($basedir)) {
return count($files);
}
Expand Down

0 comments on commit c853b39

Please sign in to comment.