From 03a1a20316300734fd1b7b3f8cf1f83bf92bbb92 Mon Sep 17 00:00:00 2001 From: Thomas Mueller Date: Mon, 28 Jan 2013 09:46:52 +0100 Subject: fixing href for folders --- apps/files/templates/part.list.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/files') diff --git a/apps/files/templates/part.list.php b/apps/files/templates/part.list.php index f3f06d61d66..ffa029360dc 100644 --- a/apps/files/templates/part.list.php +++ b/apps/files/templates/part.list.php @@ -28,7 +28,7 @@ > - + -- cgit v1.2.3 From 11e88f49391a4a38145670f731d20a1fa66040d4 Mon Sep 17 00:00:00 2001 From: Thomas Mueller Date: Mon, 28 Jan 2013 09:48:03 +0100 Subject: call ajax scan only if a user is logged in - otherwise we'll get a 500 --- apps/files/js/files.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'apps/files') diff --git a/apps/files/js/files.js b/apps/files/js/files.js index 6486468eafd..64866aea394 100644 --- a/apps/files/js/files.js +++ b/apps/files/js/files.js @@ -667,11 +667,13 @@ $(document).ready(function() { }); //check if we need to scan the filesystem - $.get(OC.filePath('files','ajax','scan.php'),{checkonly:'true'}, function(response) { - if(response.data.done){ - scanFiles(); - } - }, "json"); + if (OC.currentUser) { + $.get(OC.filePath('files','ajax','scan.php'),{checkonly:'true'}, function(response) { + if(response.data.done){ + scanFiles(); + } + }, "json"); + } var lastWidth = 0; var breadcrumbs = []; -- cgit v1.2.3 From c1072d0c09428525929a5e6154738245a23e5225 Mon Sep 17 00:00:00 2001 From: Thomas Mueller Date: Thu, 31 Jan 2013 23:26:40 +0100 Subject: call ajax scan only if a user is logged in - otherwise we'll get a 500 --- apps/files/js/files.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'apps/files') diff --git a/apps/files/js/files.js b/apps/files/js/files.js index 3d09d6aa2b6..8aec701e53f 100644 --- a/apps/files/js/files.js +++ b/apps/files/js/files.js @@ -776,6 +776,10 @@ $(document).ready(function() { }); function scanFiles(force, dir){ + if (!OC.currentUser) { + return; + } + if(!dir){ dir = ''; } -- cgit v1.2.3