Compilatio: Clean and update settings to work - refs BT#22064

pull/5852/head
Angel Fernando Quiroz Campos 11 months ago
parent 95a845cea9
commit a6898b1711
No known key found for this signature in database
GPG Key ID: B284841AE3E562CD
  1. 17
      main/inc/lib/Compilatio.php
  2. 6
      main/install/configuration.dist.php

@ -20,12 +20,7 @@ class Compilatio
*/
protected $baseUrl;
/** Webservice connection*/
public $soapcli;
private $transportMode;
private $maxFileSize;
private $wgetUri;
private $wgetLogin;
private $wgetPassword;
private $proxyHost;
private $proxyPort;
@ -36,18 +31,16 @@ class Compilatio
/**
* Compilatio constructor.
*
* @throws Exception
*/
public function __construct()
{
$settings = $this->getSettings();
$this->transportMode = $settings['transport_mode'];
$this->maxFileSize = $settings['max_filesize'];
$this->wgetUri = $settings['wget_uri'];
$this->wgetLogin = $settings['wget_login'];
$this->wgetPassword = $settings['wget_password'];
$this->key = $settings['key'];
$this->baseUrl = $settings['soap_url'];
$this->baseUrl = $settings['api_url'];
if (!empty($settings['proxy_host'])) {
$this->proxyHost = $settings['proxy_host'];
@ -92,8 +85,8 @@ class Compilatio
throw new Exception('API key not available');
}
if (empty($settings['soap_url'])) {
throw new Exception('WS urlsoap not available');
if (empty($settings['api_url'])) {
throw new Exception('Api URL not available');
}
return $settings;

@ -1576,14 +1576,10 @@ requires extension "php-soap" sudo apt-get install php-soap
/*$_configuration['compilatio_tool'] = [
'settings' => [
'key' => '',
'soap_url' => '',
'api_url' => 'https://app.compilatio.net/api',
'proxy_host' => '',
'proxy_port' => '',
'max_filesize' => '',
'transport_mode' => '',
'wget_uri' => '',
'wget_login' => '',
'wget_password' => '',
]
];*/

Loading…
Cancel
Save