diff options
author | Bart Visscher <bartv@thisnet.nl> | 2012-10-14 21:04:08 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2012-10-14 21:04:08 +0200 |
commit | 4af5b016cc0bb4e5f7e73a50d38e16d3c539bf5f (patch) | |
tree | 04ea8615a228fb252473bef72eb8b763e558ea80 /apps/files_sharing | |
parent | 2c427f050e2bc263b5c4c2faabf73e3993f1d29d (diff) | |
download | nextcloud-server-4af5b016cc0bb4e5f7e73a50d38e16d3c539bf5f.tar.gz nextcloud-server-4af5b016cc0bb4e5f7e73a50d38e16d3c539bf5f.zip |
Whitespace cleanup
Diffstat (limited to 'apps/files_sharing')
-rw-r--r-- | apps/files_sharing/lib/share/folder.php | 2 | ||||
-rw-r--r-- | apps/files_sharing/public.php | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/apps/files_sharing/lib/share/folder.php b/apps/files_sharing/lib/share/folder.php index e29e9b7e002..bddda99f8bb 100644 --- a/apps/files_sharing/lib/share/folder.php +++ b/apps/files_sharing/lib/share/folder.php @@ -59,7 +59,7 @@ class OC_Share_Backend_Folder extends OC_Share_Backend_File implements OCP\Share $parents = array(); while ($file = $result->fetchRow()) { $children[] = array('source' => $file['id'], 'file_path' => $file['name']); - // If a child folder is found look inside it + // If a child folder is found look inside it if ($file['mimetype'] == 'httpd/unix-directory') { $parents[] = $file['id']; } diff --git a/apps/files_sharing/public.php b/apps/files_sharing/public.php index e9f318efd9d..d79f1955978 100644 --- a/apps/files_sharing/public.php +++ b/apps/files_sharing/public.php @@ -45,10 +45,10 @@ if (isset($_GET['file']) || isset($_GET['dir'])) { } if (isset($linkItem['share_with'])) { // Check password - if (isset($_GET['file'])) {
- $url = OCP\Util::linkToPublic('files').'&file='.$_GET['file'];
- } else {
- $url = OCP\Util::linkToPublic('files').'&dir='.$_GET['dir'];
+ if (isset($_GET['file'])) { + $url = OCP\Util::linkToPublic('files').'&file='.$_GET['file']; + } else { + $url = OCP\Util::linkToPublic('files').'&dir='.$_GET['dir']; } if (isset($_POST['password'])) { $password = $_POST['password']; @@ -98,7 +98,7 @@ if (isset($_GET['file']) || isset($_GET['dir'])) { } else { // download a single shared file OC_Files::get("", $path, $_SERVER['REQUEST_METHOD'] == 'HEAD' ? true : false); } - + } else { OCP\Util::addStyle('files_sharing', 'public'); OCP\Util::addScript('files_sharing', 'public'); @@ -134,7 +134,7 @@ if (isset($_GET['file']) || isset($_GET['dir'])) { if ($i != '') { if ($i != $baseDir) { $pathtohere .= '/'.$i; - } + } if ( strlen($pathtohere) < strlen($_GET['dir'])) { continue; } |