diff --git a/classes/Client/class.ownclClient.php b/classes/Client/class.ownclClient.php index 291b4d4..184a659 100644 --- a/classes/Client/class.ownclClient.php +++ b/classes/Client/class.ownclClient.php @@ -238,7 +238,7 @@ public function setOwnCloudApp($owncl_app) { */ protected function getObjectSettings() { $obj_id = ilObject2::_lookupObjectId((int)$_GET['ref_id']); - $obj = new ilOwnCloud($obj_id); + $obj = new ilOwnCloud('OwnCloud', $obj_id); $conf = new ownclConfig(); $settings = array( 'baseUri' => rtrim($conf->getBaseURL(), '/') . '/', diff --git a/classes/class.ilOwnCloud.php b/classes/class.ilOwnCloud.php index e3351f5..b160df1 100755 --- a/classes/class.ilOwnCloud.php +++ b/classes/class.ilOwnCloud.php @@ -23,12 +23,13 @@ class ilOwnCloud extends ilCloudPlugin { /** + * @param $service_name * @param $obj_id * @param null $cloud_modul_object * * @throws ilCloudException */ - public function __construct($obj_id, $cloud_modul_object = NULL) { + public function __construct($service_name, $obj_id, $cloud_modul_object = NULL) { parent::__construct('OwnCloud', $obj_id, $cloud_modul_object); }