diff options
author | Jonas Meurer <jonas@freesources.org> | 2021-08-10 11:06:24 +0200 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2021-08-16 13:12:47 +0000 |
commit | d528243c0cba7d1dcb13a6dc75a28a9af8ff8e36 (patch) | |
tree | 04967923df3c466ca70a35950bb66f1e8eb216a8 /lib/private | |
parent | 7ddfd4dbc2d5b5101cc483f762f5939fbaa42af4 (diff) | |
download | nextcloud-server-d528243c0cba7d1dcb13a6dc75a28a9af8ff8e36.tar.gz nextcloud-server-d528243c0cba7d1dcb13a6dc75a28a9af8ff8e36.zip |
Use IURLGenerator function to get value of `\OC::$WEBROOT` global
Signed-off-by: Jonas Meurer <jonas@freesources.org>
Diffstat (limited to 'lib/private')
-rw-r--r-- | lib/private/URLGenerator.php | 7 |
1 files changed, 7 insertions, 0 deletions
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; + } } |