mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
This commit is contained in:
parent
dba4e6da97
commit
c853b39f50
1 changed files with 1 additions and 1 deletions
|
@ -1494,7 +1494,7 @@ class assignment_base {
|
|||
|
||||
$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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue