diff options
author | Thomas Tanghus <thomas@tanghus.net> | 2014-04-16 01:04:35 +0400 |
---|---|---|
committer | Thomas Tanghus <thomas@tanghus.net> | 2014-04-16 01:04:35 +0400 |
commit | 6fe3fd4a0be3a309f6337f72c6cc6a2774934864 (patch) | |
tree | 88c90cf8d479ccf1a1880d58f084bd0e57715346 /lib/private/helper.php | |
parent | 2dbb2db7e0ca1e1f5c32de4b6e47c0c9c870acc3 (diff) |
Fix linkToPublic. Refs #8218
Diffstat (limited to 'lib/private/helper.php')
-rw-r--r-- | lib/private/helper.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/private/helper.php b/lib/private/helper.php index da3d3cd1c6e..5ce0c2e59ac 100644 --- a/lib/private/helper.php +++ b/lib/private/helper.php @@ -125,8 +125,12 @@ class OC_Helper { * Returns a absolute url to the given service. */ public static function linkToPublic($service, $add_slash = false) { - return self::linkToAbsolute('', 'public.php') . '?service=' . $service - . (($add_slash && $service[strlen($service) - 1] != '/') ? '/' : ''); + return OC::$server->getURLGenerator()->getAbsoluteURL( + self::linkTo( + '', 'public.php') . '?service=' . $service + . (($add_slash && $service[strlen($service) - 1] != '/') ? '/' : '' + ) + ); } /** |