Add \OC:: to URLGenerator::getAbsoluteURL()

This commit is contained in:
Thomas Tanghus 2014-03-06 23:56:11 +01:00
parent 536c33895f
commit ceb5b918d7
1 changed files with 2 additions and 1 deletions

View File

@ -148,6 +148,7 @@ class URLGenerator implements IURLGenerator {
*/ */
public function getAbsoluteURL($url) { public function getAbsoluteURL($url) {
$separator = $url[0] === '/' ? '' : '/'; $separator = $url[0] === '/' ? '' : '/';
return \OC_Request::serverProtocol() . '://' . \OC_Request::serverHost() . $separator . $url;
return \OC_Request::serverProtocol() . '://' . \OC_Request::serverHost(). \OC::$WEBROOT . $separator . $url;
} }
} }