Reverted the changes

This commit is contained in:
DariusIII
2014-09-10 21:28:30 +02:00
parent 078946c2db
commit bade7c8744
10 changed files with 17 additions and 16 deletions
+4 -3
View File
@@ -108,15 +108,16 @@ class PProcess
$options += $defaults;
//\\ Various.
$this->echooutput = ($options['Echo'] && NN_ECHOCLI);
$this->echooutput = ($options['Echo'] && nZEDb_ECHOCLI);
//\\
//\\ Class instances.
$this->pdo = (($options['Settings'] instanceof DB) ? $options['Settings'] : new DB(['Settings' => $this->pdo]));
$this->pdo = (($options['Settings'] instanceof Settings) ? $options['Settings'] : new Settings());
$this->groups = (($options['Groups'] instanceof Groups) ? $options['Groups'] : new Groups(['Settings' => $this->pdo]));
$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]));
$this->Nfo = (($options['Nfo'] instanceof Info ) ? $options['Nfo'] : new Info());
$this->Nfo = (($options['Nfo'] instanceof Info ) ? $options['Nfo'] : new Info(['Echo' => $this->echooutput, 'Settings' => $this->pdo]));
$this->releaseFiles = (($options['ReleaseFiles'] instanceof ReleaseFiles) ? $options['ReleaseFiles'] : new ReleaseFiles($this->pdo));
//\\