diff options
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; + } } |