From d528243c0cba7d1dcb13a6dc75a28a9af8ff8e36 Mon Sep 17 00:00:00 2001 From: Jonas Meurer Date: Tue, 10 Aug 2021 11:06:24 +0200 Subject: Use IURLGenerator function to get value of `\OC::$WEBROOT` global Signed-off-by: Jonas Meurer --- lib/private/URLGenerator.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib/private') diff --git a/lib/private/URLGenerator.php b/lib/private/URLGenerator.php index 6c68f5d805f..12d3a898696 100644 --- a/lib/private/URLGenerator.php +++ b/lib/private/URLGenerator.php @@ -276,4 +276,11 @@ class URLGenerator implements IURLGenerator { } return $this->baseUrl; } + + /** + * @return string webroot part of the base url + */ + public function getWebroot(): string { + return \OC::$WEBROOT; + } } -- cgit v1.2.3