diff options
author | Morris Jobke <hey@morrisjobke.de> | 2015-12-18 12:00:18 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-12-18 12:00:18 +0100 |
commit | 450e2f3bd308388e5df01b2b2ea38e6bf16b1c67 (patch) | |
tree | 78029410ea899a5105e512af8e7b7458e6d43717 /lib/public/util.php | |
parent | e42f262d85ddd891ce823dd5d9b5a4a87c8a7786 (diff) | |
download | nextcloud-server-450e2f3bd308388e5df01b2b2ea38e6bf16b1c67.tar.gz nextcloud-server-450e2f3bd308388e5df01b2b2ea38e6bf16b1c67.zip |
Move OC_Helper code to OCP\Util for linkToRemote
Diffstat (limited to 'lib/public/util.php')
-rw-r--r-- | lib/public/util.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/public/util.php b/lib/public/util.php index 6f5016fa4a1..a9fe0e47de6 100644 --- a/lib/public/util.php +++ b/lib/public/util.php @@ -282,7 +282,11 @@ class Util { * @since 4.0.0 */ public static function linkToRemote( $service ) { - return(\OC_Helper::linkToRemote( $service )); + $urlGenerator = \OC::$server->getURLGenerator(); + $remoteBase = $urlGenerator->linkTo('', 'remote.php') . '/' . $service; + return $urlGenerator->getAbsoluteURL( + $remoteBase . (($service[strlen($service) - 1] != '/') ? '/' : '') + ); } /** |