Add \OC:: to URLGenerator::getAbsoluteURL()
This commit is contained in:
parent
536c33895f
commit
ceb5b918d7
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue