From 847d1c68127080ba5f3b8f46dff0501aed21a9cb Mon Sep 17 00:00:00 2001 From: nathangray Date: Tue, 5 Jun 2018 15:01:09 -0600 Subject: [PATCH] Fix some namespace errors --- api/src/Sharing.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/src/Sharing.php b/api/src/Sharing.php index a050c68983..354f04c5fd 100644 --- a/api/src/Sharing.php +++ b/api/src/Sharing.php @@ -451,7 +451,7 @@ class Sharing do { $token = function_exists('openssl_random_pseudo_bytes') ? base64_encode(openssl_random_pseudo_bytes(3*self::TOKEN_LENGTH/4)) : - Api\Auth::randomstring(self::TOKEN_LENGTH); + Auth::randomstring(self::TOKEN_LENGTH); // base64 can contain chars not allowed in our vfs-urls eg. / or # } while ($token != urlencode($token)); @@ -529,7 +529,7 @@ class Sharing $share['share_id'] = static::$db->get_last_insert_id(static::TABLE, 'share_id'); break; } - catch(Api\Db\Exception $e) { + catch(Db\Exception $e) { if ($i++ > 3) throw $e; unset($e); }