diff --git a/php/classes/SharedObjectsMgr.php b/php/classes/SharedObjectsMgr.php index 540ca1b..82eeb23 100644 --- a/php/classes/SharedObjectsMgr.php +++ b/php/classes/SharedObjectsMgr.php @@ -31,7 +31,7 @@ class SharedObjectsMgr { return array('success' => $sucess, 'message' => $message); } - + public function add($object_type, $object_name, $folder_id, $src_object_path, $description, $sharedBy, $forceId = "") { if (!array_key_exists($object_type, $this->sharedObjectsMgr) || !isset($this->sharedObjectsMgr[$object_type])) return array('success' => FALSE, 'message' => 'Unknown type'); @@ -43,7 +43,7 @@ class SharedObjectsMgr { $id = empty($forceId) ? $this->treeFile->reserveNewId($object_type) : $forceId; - $result = $this->sharedObjectsMgr[$object_type]->add($object_name, $folder_name, $src_object_path, $description, $sharedBy, $forceId); + $result = $this->sharedObjectsMgr[$object_type]->add($object_name, $folder_name, $src_object_path, $description, $sharedBy, $id); if ($result['success']) $result['folder_id'] = $folder_id; -- libgit2 0.21.2