diff options
author | Roeland Jago Douma <rullzer@owncloud.com> | 2015-12-17 10:53:21 +0100 |
---|---|---|
committer | Roeland Jago Douma <rullzer@owncloud.com> | 2015-12-17 10:53:21 +0100 |
commit | 19eeb23b910104d2447888c12439a1008cc921b9 (patch) | |
tree | e662494d7f76e4a7dc2a442f27468942b566c803 /lib/private/helper.php | |
parent | c92b49c82aad3104f9d60961a57f6d8480c136a5 (diff) | |
download | nextcloud-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/helper.php')
-rw-r--r-- | lib/private/helper.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/private/helper.php b/lib/private/helper.php index 78a567638ef..ed127a62f38 100644 --- a/lib/private/helper.php +++ b/lib/private/helper.php @@ -93,7 +93,7 @@ class OC_Helper { */ public static function linkToAbsolute($app, $file, $args = array()) { return OC::$server->getURLGenerator()->getAbsoluteURL( - self::linkTo($app, $file, $args) + OC::$server->getURLGenerator()->linkTo($app, $file, $args) ); } @@ -117,7 +117,7 @@ class OC_Helper { * Returns a url to the given service. */ public static function linkToRemoteBase($service) { - return self::linkTo('', 'remote.php') . '/' . $service; + return OC::$server->getURLGenerator()->linkTo('', 'remote.php') . '/' . $service; } /** @@ -147,7 +147,7 @@ class OC_Helper { if ($service === 'files') { $url = OC::$server->getURLGenerator()->getAbsoluteURL('/s'); } else { - $url = OC::$server->getURLGenerator()->getAbsoluteURL(self::linkTo('', 'public.php').'?service='.$service); + $url = OC::$server->getURLGenerator()->getAbsoluteURL(OC::$server->getURLGenerator()->linkTo('', 'public.php').'?service='.$service); } return $url . (($add_slash && $service[strlen($service) - 1] != '/') ? '/' : ''); } |