Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
fix(files): $file is not always an object with originalfilename property
$file can be a string in ElggFile::detectMimetype, which was producing log errors. Now using actual ElggFile instance to get the originalfilename metadata, or basename() to get the filename from a path. Refs #8846
- Loading branch information