]> source.dussan.org Git - nextcloud-server.git/commitdiff
pass the user to setupFS
authorRobin Appelman <icewind1991@gmail.com>
Mon, 18 Apr 2011 07:25:50 +0000 (09:25 +0200)
committerRobin Appelman <icewind1991@gmail.com>
Mon, 18 Apr 2011 07:26:06 +0000 (09:26 +0200)
plugins/publiclink/lib_public.php

index 494f84fdb7abf3455d5e46451e4002aa3efda196..7c25c938fda53384aec66bb3a7eef39edd948f21 100644 (file)
@@ -38,11 +38,8 @@ class OC_PublicLink{
                        $path=$data[0]['path'];
                        $user=$data[0]['user'];
                        
-                       //login
-                       $_SESSION['user_id']=$user;
-                       
                        //prepare the filesystem
-                       OC_UTIL::setupFS();
+                       OC_UTIL::setupFS($user);
                        
                        //get time mimetype and set the headers
                        $mimetype=OC_FILESYSTEM::getMimeType($path);