From 505cd1bc4eeabd5c20b4d13d6e7d5f83548a3078 Mon Sep 17 00:00:00 2001 From: Stefan Wanzenried Date: Mon, 7 Mar 2016 16:10:07 +0100 Subject: [PATCH] Correct service name --- classes/Client/class.ownclClient.php | 2 +- classes/class.ilOwnCloud.php | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/classes/Client/class.ownclClient.php b/classes/Client/class.ownclClient.php index 3e377eb..291b4d4 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('ownCloud', $obj_id); + $obj = new ilOwnCloud($obj_id); $conf = new ownclConfig(); $settings = array( 'baseUri' => rtrim($conf->getBaseURL(), '/') . '/', diff --git a/classes/class.ilOwnCloud.php b/classes/class.ilOwnCloud.php index df62832..e3351f5 100755 --- a/classes/class.ilOwnCloud.php +++ b/classes/class.ilOwnCloud.php @@ -22,6 +22,17 @@ class ilOwnCloud extends ilCloudPlugin { protected $password; + /** + * @param $obj_id + * @param null $cloud_modul_object + * + * @throws ilCloudException + */ + public function __construct($obj_id, $cloud_modul_object = NULL) { + parent::__construct('OwnCloud', $obj_id, $cloud_modul_object); + } + + /** * @return bool */