From cc4001fce7934b49e6e7888a602b9bb9c33cf37f Mon Sep 17 00:00:00 2001 From: tuscanhobbit Date: Tue, 24 Jun 2014 12:05:11 +0200 Subject: Fixes to links and forward URLs in filestorage --- include/reddav.php | 38 +++++++++++++++++++++----------------- 1 file changed, 21 insertions(+), 17 deletions(-) (limited to 'include/reddav.php') diff --git a/include/reddav.php b/include/reddav.php index 852a18869..fe05af606 100644 --- a/include/reddav.php +++ b/include/reddav.php @@ -1028,16 +1028,16 @@ class RedBrowser extends DAV\Browser\Plugin { } } $attachId = $this->findAttachIdByHash($attachHash); - $fileStorageUrl = str_replace("cloud/","filestorage/",$path); + $fileStorageUrl = substr($fullPath, 0, strpos($fullPath,"cloud/")) . "filestorage/".$this->auth->channel_name; $attachIcon = ""; // ""; $html.= " $icon - {$displayName}"; + {$displayName}"; if($is_owner) { $html .= "" . (($size) ? $attachIcon : '') . " - "; + "; } else { $html .= ""; @@ -1090,20 +1090,24 @@ class RedBrowser extends DAV\Browser\Plugin { if (get_class($node)==='Sabre\\DAV\\SimpleCollection') return; - $output.= '
-

Create new folder

- - Name: - -
-
-

Upload file

- - Name (optional):
- File:
- -
- '; + $output.= ' + + + + + + + +
Create new folder   
+ + + +
Upload file   
+ + + + +
'; } -- cgit v1.2.3