From 93b1c7f1abf10c3353ce070fc07b95ef4e084e90 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 19 Nov 2019 14:01:50 +0200 Subject: [PATCH] fix namespace issues --- api/src/Mail.php | 2 +- api/src/Vfs/Filesystem/StreamWrapper.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/api/src/Mail.php b/api/src/Mail.php index 6f4d409e26..8fbdd88e3a 100644 --- a/api/src/Mail.php +++ b/api/src/Mail.php @@ -6797,7 +6797,7 @@ class Mail $myUrl = $directory.$filename; if ($myUrl[0]=='/') // local path -> we only allow path's that are available via http/https (or vfs) { - $basedir = Api\Framework::getUrl('/'); + $basedir = Framework::getUrl('/'); } // use vfs instead of url containing webdav.php // ToDo: we should test if the webdav url is of our own scope, as we cannot handle foreign diff --git a/api/src/Vfs/Filesystem/StreamWrapper.php b/api/src/Vfs/Filesystem/StreamWrapper.php index c2023059ee..b248dbfcc0 100644 --- a/api/src/Vfs/Filesystem/StreamWrapper.php +++ b/api/src/Vfs/Filesystem/StreamWrapper.php @@ -13,6 +13,7 @@ namespace EGroupware\Api\Vfs\Filesystem; +use EGroupware\Api; use EGroupware\Api\Vfs; /**