diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2020-03-04 13:51:40 +0100 |
---|---|---|
committer | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2020-03-11 09:27:20 +0100 |
commit | 6c968fe77db0ef96e16b103f47e318531f3d33be (patch) | |
tree | 9855ba64d7159a013a09ffb45bdeee49e051937a /apps | |
parent | 0f9fe74020d8b8b71ce03e0baf2f1e2b13cda5f9 (diff) | |
download | nextcloud-server-6c968fe77db0ef96e16b103f47e318531f3d33be.tar.gz nextcloud-server-6c968fe77db0ef96e16b103f47e318531f3d33be.zip |
Fix import order and formatting
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/lib/Controller/ShareController.php | 3 | ||||
-rw-r--r-- | apps/files_sharing/public.php | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/apps/files_sharing/lib/Controller/ShareController.php b/apps/files_sharing/lib/Controller/ShareController.php index 72168b3c316..274d4bd23c0 100644 --- a/apps/files_sharing/lib/Controller/ShareController.php +++ b/apps/files_sharing/lib/Controller/ShareController.php @@ -41,9 +41,9 @@ namespace OCA\Files_Sharing\Controller; -use OC\Security\CSP\ContentSecurityPolicy; use OC_Files; use OC_Util; +use OC\Security\CSP\ContentSecurityPolicy; use OCA\FederatedFileSharing\FederatedShareProvider; use OCA\Files_Sharing\Activity\Providers\Downloads; use OCP\AppFramework\AuthPublicShareController; @@ -370,6 +370,7 @@ class ShareController extends AuthPublicShareController { $maxUploadFilesize = $freeSpace; $folder = new Template('files', 'list', ''); + $folder->assign('dir', $shareNode->getRelativePath($folderNode->getPath())); $folder->assign('dirToken', $this->getToken()); $folder->assign('permissions', \OCP\Constants::PERMISSION_READ); diff --git a/apps/files_sharing/public.php b/apps/files_sharing/public.php index b72d3a9dd9a..1fcdf2fe505 100644 --- a/apps/files_sharing/public.php +++ b/apps/files_sharing/public.php @@ -27,7 +27,7 @@ $urlGenerator = \OC::$server->getURLGenerator(); $token = isset($_GET['t']) ? $_GET['t'] : ''; $route = isset($_GET['download']) ? 'files_sharing.sharecontroller.downloadShare' : 'files_sharing.sharecontroller.showShare'; -if($token !== '') { +if ($token !== '') { $protocol = \OC::$server->getRequest()->getHttpProtocol(); if ($protocol == 'HTTP/1.0') { http_response_code(302); |