diff options
author | Bart Visscher <bartv@thisnet.nl> | 2012-05-07 20:22:55 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2012-05-07 21:47:14 +0200 |
commit | 4dbc2093c680bebaa42f230937be88a58984c5bd (patch) | |
tree | f0d51daac5376fadab5d8f1147926842485af836 /lib/helper.php | |
parent | 9b5e0bebefd6c30c819d9830e79f3c07f0231d42 (diff) | |
download | nextcloud-server-4dbc2093c680bebaa42f230937be88a58984c5bd.tar.gz nextcloud-server-4dbc2093c680bebaa42f230937be88a58984c5bd.zip |
Create a function for linking to remote.php
Diffstat (limited to 'lib/helper.php')
-rw-r--r-- | lib/helper.php | 11 |
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 |