aboutsummaryrefslogtreecommitdiffstats
path: root/lib/helper.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/helper.php')
-rw-r--r--lib/helper.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/helper.php b/lib/helper.php
index 757f562bfed..f5e247ca9eb 100644
--- a/lib/helper.php
+++ b/lib/helper.php
@@ -106,6 +106,17 @@ class OC_Helper {
}
/**
+ * @brief Creates an absolute url for remote use
+ * @param $service id
+ * @returns the url
+ *
+ * Returns a absolute url to the given service.
+ */
+ public static function linkToRemote( $service ) {
+ return self::linkToAbsolute( '', 'remote.php') . '/' . $service . '/';
+ }
+
+ /**
* @brief Creates path to an image
* @param $app app
* @param $image image name