diff --git a/lib/file/file_info_stored.php b/lib/file/file_info_stored.php index 981b84be7ae..d226d5c27ae 100644 --- a/lib/file/file_info_stored.php +++ b/lib/file/file_info_stored.php @@ -40,7 +40,7 @@ class file_info_stored extends file_info { $dir = array_pop($dir); if ($dir === '') { if ($this->itemidused) { - return $this->itemid; + return $this->lf->get_itemid(); } else { return $this->areavisiblename; }