@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | // If we have a nickname, let's put everything inside |
128 | 128 | if ($nickname) { |
129 | 129 | // Put all files in the subfolder |
130 | - $relativePath = '/' . $nickname . '/' . $relativePath; |
|
130 | + $relativePath = '/'.$nickname.'/'.$relativePath; |
|
131 | 131 | $relativePath = str_replace('//', '/', $relativePath); |
132 | 132 | } |
133 | 133 | |
@@ -172,8 +172,8 @@ discard block |
||
172 | 172 | // Finally handle conflicts on the end files |
173 | 173 | $uniqueName = $folder->getNonExistingName(basename($relativePath)); |
174 | 174 | $relativePath = substr($folder->getPath(), strlen($node->getPath())); |
175 | - $path = '/files/' . $token . '/' . $relativePath . '/' . $uniqueName; |
|
176 | - $url = rtrim($request->getBaseUrl(), '/') . str_replace('//', '/', $path); |
|
175 | + $path = '/files/'.$token.'/'.$relativePath.'/'.$uniqueName; |
|
176 | + $url = rtrim($request->getBaseUrl(), '/').str_replace('//', '/', $path); |
|
177 | 177 | $request->setUrl($url); |
178 | 178 | } |
179 | 179 |