diff options
Diffstat (limited to 'engine/classes/ElggDiskFilestore.php')
-rw-r--r-- | engine/classes/ElggDiskFilestore.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/classes/ElggDiskFilestore.php b/engine/classes/ElggDiskFilestore.php index 774054842..11b2bd947 100644 --- a/engine/classes/ElggDiskFilestore.php +++ b/engine/classes/ElggDiskFilestore.php @@ -202,7 +202,7 @@ class ElggDiskFilestore extends ElggFilestore { public function getFilenameOnFilestore(ElggFile $file) { $owner = $file->getOwnerEntity(); if (!$owner) { - $owner = get_loggedin_user(); + $owner = elgg_get_logged_in_user_entity(); } if ((!$owner) || (!$owner->username)) { @@ -396,4 +396,4 @@ class ElggDiskFilestore extends ElggFilestore { return false; } -}
\ No newline at end of file +} |