aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/reddav.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/reddav.php b/include/reddav.php
index a8d6739f0..cb2aa3bb9 100644
--- a/include/reddav.php
+++ b/include/reddav.php
@@ -1064,5 +1064,15 @@ class RedBrowser extends DAV\Browser\Plugin {
}
+ /**
+ * This method takes a path/name of an asset and turns it into url
+ * suiteable for http access.
+ *
+ * @param string $assetName
+ * @return string
+ */
+ protected function getAssetUrl($assetName) {
+ return '/cloud/?sabreAction=asset&assetName=' . urlencode($assetName);
+ }
}