Skip to content

Commit

Permalink
Minor corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel-WWU-IT committed Mar 25, 2021
1 parent 3652908 commit 705b627
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
10 changes: 5 additions & 5 deletions appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
<version>1.1.0</version>
<namespace>ScienceMesh</namespace>
<category>productivity</category>
<dependencies>
<owncloud min-version="10.0.0" max-version="11" />
</dependencies>
<dependencies>
<owncloud min-version="10.0.0" max-version="11"/>
</dependencies>
<settings>
<admin>OCA\Sciencemesh\AdminSettings</admin>
<admin>OCA\Sciencemesh\AdminSettings</admin>
</settings>
<use-migrations>true</use-migrations>
</info>
</info>
7 changes: 3 additions & 4 deletions controller/settingscontroller.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ class SettingsController extends Controller
private $config;
private $urlGenerator;

// const CATALOG_URL = "https://sciencemesh-test.uni-muenster.de/api/mentix/sitereg";
const CATALOG_URL = "http://localhost:9600/mentix/sitereg";
const CATALOG_URL = "https://sciencemesh-test.uni-muenster.de/api/mentix/sitereg";

/**
* @param string $AppName - application name
Expand Down Expand Up @@ -100,7 +99,7 @@ public function saveSettings($apikey, $sitename, $siteurl, $country, $iopurl, $n

// submit settings to Mentix (if they are valid)
if ($apikey !== "" && $sitename !== "" && $siteurl !== "" && $iopurl !== "") {
$err = $this->submitSettings($apikey, $sitename, $siteurl, $country, $iopurl, $numusers, $numfiles, $numstorage);
$err = $this->submitSettings($apikey, $sitename, $siteurl, $country, $iopurl);
if ($err != null) {
return new DataResponse([
'error' => $err
Expand Down Expand Up @@ -150,7 +149,7 @@ private function loadSettings()
return $row;
}

private function submitSettings($apikey, $sitename, $siteurl, $country, $iopurl, $numusers, $numfiles, $numstorage)
private function submitSettings($apikey, $sitename, $siteurl, $country, $iopurl)
{
// fill out a data object as needed by Mentix
$iopPath = parse_url($iopurl, PHP_URL_PATH);
Expand Down

0 comments on commit 705b627

Please sign in to comment.