aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorKlaus <Klaus.Weidenbach@gmx.net>2014-02-15 21:48:40 +0100
committerKlaus <Klaus.Weidenbach@gmx.net>2014-02-15 21:48:40 +0100
commit53d6d4c6556fe85a05ef6945d2ebc327e82cb3fb (patch)
treed1dfc121cf844cb44e16bffae07d1242778a029a /include
parentd9e4f634665ec4da69b5af230f45f2a0e9688a1b (diff)
downloadvolse-hubzilla-53d6d4c6556fe85a05ef6945d2ebc327e82cb3fb.tar.gz
volse-hubzilla-53d6d4c6556fe85a05ef6945d2ebc327e82cb3fb.tar.bz2
volse-hubzilla-53d6d4c6556fe85a05ef6945d2ebc327e82cb3fb.zip
Fix call to asset icons in RedBrowser.
RedBrowser was not displaying asset icons correctly, because the URL was wrong.
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);
+ }
}