diff options
author | Thomas Tanghus <thomas@tanghus.net> | 2014-03-06 23:56:11 +0100 |
---|---|---|
committer | Thomas Tanghus <thomas@tanghus.net> | 2014-03-06 23:56:11 +0100 |
commit | ceb5b918d750f39ddb3d8a4575be9bf42096cbc1 (patch) | |
tree | 991ba7ff6e0ebfa43656c2e92203c8737a57cb08 | |
parent | 536c33895f3e721492e30b19e02e4f1889207d34 (diff) | |
download | nextcloud-server-ceb5b918d750f39ddb3d8a4575be9bf42096cbc1.tar.gz nextcloud-server-ceb5b918d750f39ddb3d8a4575be9bf42096cbc1.zip |
Add \OC:: to URLGenerator::getAbsoluteURL()
-rw-r--r-- | lib/private/urlgenerator.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/urlgenerator.php b/lib/private/urlgenerator.php index 60da34f2d6e..aa06d6fca11 100644 --- a/lib/private/urlgenerator.php +++ b/lib/private/urlgenerator.php @@ -148,6 +148,7 @@ class URLGenerator implements IURLGenerator { */ public function getAbsoluteURL($url) { $separator = $url[0] === '/' ? '' : '/'; - return \OC_Request::serverProtocol() . '://' . \OC_Request::serverHost() . $separator . $url; + + return \OC_Request::serverProtocol() . '://' . \OC_Request::serverHost(). \OC::$WEBROOT . $separator . $url; } } |