Improved resource id creation

This commit is contained in:
Michael 2018-02-20 10:02:07 +00:00
parent d90b93cfda
commit a3af6807ac
9 changed files with 23 additions and 37 deletions

View file

@ -521,7 +521,7 @@ class User
if ($Image->isValid()) {
$Image->scaleToSquare(175);
$hash = photo_new_resource();
$hash = Photo::newResource();
$r = Photo::store($Image, $uid, 0, $hash, $filename, L10n::t('Profile Photos'), 4);