Fix more of getSetting.

This commit is contained in:
Darko
2014-09-18 14:24:46 +02:00
parent 56af697593
commit 568cde6961
5 changed files with 17 additions and 7 deletions
+1 -1
View File
@@ -114,7 +114,7 @@ class PProcess
$this->site = $s->get();
//\\ Class instances.
$this->pdo = (($options['Settings'] instanceof DB) ? $options['Settings'] : new DB());
$this->groups = (($options['Groups'] instanceof Groups) ? $options['Groups'] : new Groups(['Settings' => $this->pdo]));
$this->groups = (($options['Groups'] instanceof Groups) ? $options['Groups'] : new Groups());
$this->_par2Info = new Par2Info();
$this->debugging = ($options['Logger'] instanceof Logger ? $options['Logger'] : new Logger(['ColorCLI' => $this->pdo->log]));
$this->nameFixer = (($options['NameFixer'] instanceof NameFixer) ? $options['NameFixer'] : new NameFixer(['Echo' => $this->echooutput, 'Settings' => $this->pdo, 'Groups' => $this->groups]));