diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-10-08 19:29:52 +0300 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2018-10-08 19:29:52 +0300 |
commit | db345e4c6dccd690b9cc5f53642696ab73290daf (patch) | |
tree | b31618fbe87ac57e7e8495939042ddae4a5cbd01 /lib/public/Util.php | |
parent | 2a9e00635531a9b4269c9dc8fc97eeca1e6ce8cf (diff) |
Deprecate unused, private OC_Helper::linkToPublic
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/public/Util.php')
-rw-r--r-- | lib/public/Util.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/public/Util.php b/lib/public/Util.php index 3a1c28a899a..fb2d31f3dce 100644 --- a/lib/public/Util.php +++ b/lib/public/Util.php @@ -230,9 +230,14 @@ class Util { * @param string $service id * @return string the url * @since 4.5.0 + * @deprecated 15.0.0 - use OCP\IURLGenerator */ public static function linkToPublic($service) { - return \OC_Helper::linkToPublic($service); + $urlGenerator = \OC::$server->getURLGenerator(); + if ($service === 'files') { + return $urlGenerator->getAbsoluteURL('/s'); + } + return $urlGenerator->getAbsoluteURL($urlGenerator->linkTo('', 'public.php').'?service='.$service); } /** |