diff options
author | Max Kostikov <max@kostikov.co> | 2021-01-23 13:07:09 +0000 |
---|---|---|
committer | Max Kostikov <max@kostikov.co> | 2021-01-23 13:07:09 +0000 |
commit | 03910453a98bacd32dc379dc71d99a93d146bae1 (patch) | |
tree | a74e7f4c1b8d117a457ffb646a47f88023d24fd6 /include/text.php | |
parent | 33951dc1e4695bece701b85275d4c282c1936150 (diff) | |
parent | 30962dadbf6c4f4d099fca05a0e7b3261fb6b391 (diff) | |
download | volse-hubzilla-03910453a98bacd32dc379dc71d99a93d146bae1.tar.gz volse-hubzilla-03910453a98bacd32dc379dc71d99a93d146bae1.tar.bz2 volse-hubzilla-03910453a98bacd32dc379dc71d99a93d146bae1.zip |
Merge branch 'dev' into 'dev'
Dev sync
See merge request kostikov/core!3
Diffstat (limited to 'include/text.php')
-rw-r--r-- | include/text.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/text.php b/include/text.php index d6b196f1e..1e08d136c 100644 --- a/include/text.php +++ b/include/text.php @@ -7,7 +7,7 @@ use Zotlabs\Lib as Zlib; use Michelf\MarkdownExtra; use Ramsey\Uuid\Uuid; -use Ramsey\Uuid\Exception\UnsatisfiedDependencyException; +use Ramsey\Uuid\Exception\UnableToBuildUuidException; use Zotlabs\Lib\SvgSanitizer; @@ -3824,7 +3824,7 @@ function new_uuid() { try { $hash = Uuid::uuid4()->toString(); - } catch (UnsatisfiedDependencyException $e) { + } catch (UnableToBuildUuidException $e) { $hash = random_string(48); } @@ -3842,7 +3842,7 @@ function uuid_from_url($url) { try { $hash = Uuid::uuid5(Uuid::NAMESPACE_URL, $url)->toString(); - } catch (UnsatisfiedDependencyException $e) { + } catch (UnableToBuildUuidException $e) { $hash = md5($url); } return $hash; |