Skip to content

Commit

Permalink
Fix - remove config->item() from tests and replace with config->confi…
Browse files Browse the repository at this point in the history
…g[] because old PHP.
  • Loading branch information
mark-unwin committed Sep 6, 2019
1 parent 149e29a commit 7c83163
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@

if ($table == 'collectors') {
$dictionary->sentence = 'Open-AudIT Enterprise includes Collectors. Have a single Open-AudIT server control many other servers that perform discovery and collect device information.';
if ($this->config->item('oae_product') !== 'Open-AudIT Cloud') {
if ($this->config->config['oae_product'] !== 'Open-AudIT Cloud') {
$dictionary->about = '<p>The Collectors feature enables you to easily manage many "collector" computers that perform network discovery. All Collectors are centrally controlled from the Server. The only required network ports between the Collector and the Server are 80 and/or 443.<br /><br />
It makes managing disparate networks quick, easy and simple. Open-AudIT Enterprise licensees get a single collector license included and have the option to buy more as required..<br /><br />
' . $link . '<br /><br /></p>';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1617,7 +1617,7 @@
}
}
} else {
if (php_uname('s') == 'Windows NT' and exec('whoami') == 'nt authority\system' and !empty($this->config->item('discovery_use_vintage_service')) and $this->config->item('discovery_use_vintage_service') == 'y') {
if (php_uname('s') == 'Windows NT' and exec('whoami') == 'nt authority\system' and !empty($this->config->config['discovery_use_vintage_service']) and $this->config->config['discovery_use_vintage_service'] == 'y') {
$log->message = 'Audit result incoming from target.';
$log->severity = 6;
discovery_log($log);
Expand Down
2 changes: 1 addition & 1 deletion code_igniter/application/controllers/rules.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function __construct()
parent::__construct();
$this->load->model('m_rules');
inputRead();
$this->output->url = $this->config->item('oa_web_index');
$this->output->url = $this->config->config['oa_web_index'];
}

/**
Expand Down

0 comments on commit 7c83163

Please sign in to comment.