aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/route/router.php
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@owncloud.com>2015-12-17 10:53:21 +0100
committerRoeland Jago Douma <rullzer@owncloud.com>2015-12-17 10:53:21 +0100
commit19eeb23b910104d2447888c12439a1008cc921b9 (patch)
treee662494d7f76e4a7dc2a442f27468942b566c803 /lib/private/route/router.php
parentc92b49c82aad3104f9d60961a57f6d8480c136a5 (diff)
downloadnextcloud-server-19eeb23b910104d2447888c12439a1008cc921b9.tar.gz
nextcloud-server-19eeb23b910104d2447888c12439a1008cc921b9.zip
OC_Helper::linkTo is deprecated
Replaced with suggested (and calling body of)
Diffstat (limited to 'lib/private/route/router.php')
-rw-r--r--lib/private/route/router.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/route/router.php b/lib/private/route/router.php
index 4ca5e16ddf2..f144c543989 100644
--- a/lib/private/route/router.php
+++ b/lib/private/route/router.php
@@ -92,7 +92,7 @@ class Router implements IRouter {
$this->logger = $logger;
$baseUrl = \OC::$WEBROOT;
if(!(getenv('front_controller_active') === 'true')) {
- $baseUrl = \OC_Helper::linkTo('', 'index.php');
+ $baseUrl = \OC::$server->getURLGenerator()->linkTo('', 'index.php');
}
if (!\OC::$CLI) {
$method = $_SERVER['REQUEST_METHOD'];