summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-05-07 20:22:55 +0200
committerBart Visscher <bartv@thisnet.nl>2012-05-07 21:47:14 +0200
commit4dbc2093c680bebaa42f230937be88a58984c5bd (patch)
treef0d51daac5376fadab5d8f1147926842485af836 /lib/public
parent9b5e0bebefd6c30c819d9830e79f3c07f0231d42 (diff)
downloadnextcloud-server-4dbc2093c680bebaa42f230937be88a58984c5bd.tar.gz
nextcloud-server-4dbc2093c680bebaa42f230937be88a58984c5bd.zip
Create a function for linking to remote.php
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/util.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/public/util.php b/lib/public/util.php
index 6a8adff0f5a..f9f3759fe5b 100644
--- a/lib/public/util.php
+++ b/lib/public/util.php
@@ -130,6 +130,18 @@ class Util {
}
+ /**
+ * @brief Creates an absolute url for remote use
+ * @param $service id
+ * @returns the url
+ *
+ * Returns a absolute url to the given app and file.
+ */
+ public static function linkToRemote( $service ) {
+ return(\OC_Helper::linkToRemote( $service ));
+ }
+
+
/**
* @brief Creates an url
* @param $app app