Fixed mistakes pointed out by icewind
This commit is contained in:
parent
bf66563cda
commit
fe4a213e1b
|
@ -31,7 +31,7 @@ class OC_SHARE {
|
|||
* @param string $item
|
||||
* @param user item shared with $uid_shared_with
|
||||
*/
|
||||
public function __construct($item, $public = false, $uid_shared_with) {
|
||||
public function __construct($item, $uid_shared_with, $public = false) {
|
||||
if ($item && OC_FILESYSTEM::file_exists($item) && OC_FILESYSTEM::is_readable($item)) {
|
||||
$uid_owner = $_SESSION['user_id'];
|
||||
if ($public) {
|
||||
|
|
|
@ -48,7 +48,7 @@ class OC_FILESTORAGE_SHARED {
|
|||
$source = OC_SHARE::getSource($path);
|
||||
if ($source) {
|
||||
$storage = OC_FILESYSTEM::getStorage($source);
|
||||
return $storage->is_file(OC_FILESYSTEM::getInternalPath($source));
|
||||
return $storage->rmdir(OC_FILESYSTEM::getInternalPath($source));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue