mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 17:06:53 +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);
|
$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)) {
|
if ($files = get_directory_list($basedir)) {
|
||||||
return count($files);
|
return count($files);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue