Fixed mistakes pointed out by icewind

This commit is contained in:
Michael Gapczynski 2011-06-16 14:59:54 -04:00
parent bf66563cda
commit fe4a213e1b
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -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));
}
}