Skip to content

Commit

Permalink
Compilatio: Clean and update settings to work - refs BT#22064
Browse files Browse the repository at this point in the history
  • Loading branch information
AngelFQC committed Oct 14, 2024
1 parent 95a845c commit 73f44f4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 15 deletions.
13 changes: 3 additions & 10 deletions main/inc/lib/Compilatio.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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'];
Expand Down
6 changes: 1 addition & 5 deletions main/install/configuration.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -1576,14 +1576,10 @@
/*$_configuration['compilatio_tool'] = [
'settings' => [
'key' => '',
'soap_url' => '',
'api_url' => '',
'proxy_host' => '',
'proxy_port' => '',
'max_filesize' => '',
'transport_mode' => '',
'wget_uri' => '',
'wget_login' => '',
'wget_password' => '',
]
];*/

Expand Down

0 comments on commit 73f44f4

Please sign in to comment.