aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_sharing')
-rw-r--r--apps/files_sharing/js/share.js2
-rw-r--r--apps/files_sharing/public.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/apps/files_sharing/js/share.js b/apps/files_sharing/js/share.js
index 8a546d62163..a46d0179801 100644
--- a/apps/files_sharing/js/share.js
+++ b/apps/files_sharing/js/share.js
@@ -1,7 +1,7 @@
$(document).ready(function() {
if (typeof OC.Share !== 'undefined' && typeof FileActions !== 'undefined' && !publicListView) {
-
+
FileActions.register('all', 'Share', OC.PERMISSION_READ, OC.imagePath('core', 'actions/share'), function(filename) {
if ($('#dir').val() == '/') {
var item = $('#dir').val() + filename;
diff --git a/apps/files_sharing/public.php b/apps/files_sharing/public.php
index 10442553e31..f85fe92ff60 100644
--- a/apps/files_sharing/public.php
+++ b/apps/files_sharing/public.php
@@ -71,7 +71,7 @@ if (isset($_GET['t'])) {
$fileSource = $linkItem['file_source'];
$shareOwner = $linkItem['uid_owner'];
- if (OCP\User::userExists($shareOwner) && $fileSource != -1) {
+ if (OCP\User::userExists($shareOwner) && $fileSource != -1 ) {
$pathAndUser = getPathAndUser($linkItem['file_source']);
$fileOwner = $pathAndUser['user'];
@@ -167,7 +167,7 @@ if ($linkItem) {
$tmpl->printPage();
exit();
}
-
+
} else {
// Check if item id is set in session
if (!isset($_SESSION['public_link_authenticated'])