Make asset icons work in subdir installs as well.

This should be the right way I guess, especially if red# is installed in a subdirectory. (untested)
This commit is contained in:
Klaus 2014-02-15 22:25:14 +01:00
parent 53d6d4c655
commit 01f31c2f20

View File

@ -1072,7 +1072,7 @@ class RedBrowser extends DAV\Browser\Plugin {
* @return string * @return string
*/ */
protected function getAssetUrl($assetName) { protected function getAssetUrl($assetName) {
return '/cloud/?sabreAction=asset&assetName=' . urlencode($assetName); return z_root() .'/cloud/?sabreAction=asset&assetName=' . urlencode($assetName);
} }
} }