moved get_guid to System::createGUID

This commit is contained in:
Philipp Holzer 2018-07-09 21:38:16 +02:00
parent 3a179860e5
commit c829e43725
No known key found for this signature in database
GPG key ID: 58160D7D6AF942B6
21 changed files with 105 additions and 88 deletions

View file

@ -45,7 +45,7 @@ class Photo
if (DBM::is_result($photo)) {
$guid = $photo['guid'];
} else {
$guid = get_guid();
$guid = System::createGUID();
}
$existing_photo = dba::selectFirst('photo', ['id'], ['resource-id' => $rid, 'uid' => $uid, 'contact-id' => $cid, 'scale' => $scale]);
@ -275,6 +275,6 @@ class Photo
*/
public static function newResource()
{
return get_guid(32, false);
return system::createGUID(32, false);
}
}