if (!$owner)
$owner = get_loggedin_user();
- if ((!$owner) || (!$owner->username)) throw new InvalidParameterException(elgg_echo('InvalidParameterException:MissingOwner'));
+ if ((!$owner) || (!$owner->username)) throw new InvalidParameterException(sprintf(elgg_echo('InvalidParameterException:MissingOwner'), $file->getFilename(), $file->guid));
return $this->dir_root . $this->make_file_matrix($owner->username) . $file->getFilename();
}
'ImportException:NotAllImported' => "Not all elements were imported.",\r
\r
'InvalidParameterException:UnrecognisedFileMode' => "Unrecognised file mode '%s'",\r
- 'InvalidParameterException:MissingOwner' => "All files must have an owner!",\r
+ 'InvalidParameterException:MissingOwner' => "File %s (%d) is missing an owner!",\r
'IOException:CouldNotMake' => "Could not make %s",\r
'IOException:MissingFileName' => "You must specify a name before opening a file.",\r
'ClassNotFoundException:NotFoundNotSavedWithFile' => "Filestore not found or class not saved with file!",\r