mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Fixed mistakes pointed out by icewind
This commit is contained in:
parent
bf66563cda
commit
fe4a213e1b
2 changed files with 2 additions and 2 deletions
|
|
@ -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 a new issue