From 53d6d4c6556fe85a05ef6945d2ebc327e82cb3fb Mon Sep 17 00:00:00 2001 From: Klaus Date: Sat, 15 Feb 2014 21:48:40 +0100 Subject: Fix call to asset icons in RedBrowser. RedBrowser was not displaying asset icons correctly, because the URL was wrong. --- include/reddav.php | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'include') 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); + } } -- cgit v1.2.3