Skip to content

Commit

Permalink
more leftovers from renaming the config function
Browse files Browse the repository at this point in the history
  • Loading branch information
AD7six committed Mar 29, 2014
1 parent fad9410 commit d23e2f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions src/Log/Engine/BaseLog.php
Expand Up @@ -44,17 +44,14 @@ public function __construct(array $config = []) {
$this->config($config);

if (!is_array($this->_config['scopes'])) {
$normalized = true;
$this->_config['scopes'] = (array)$this->_config['scopes'];
}

if (!is_array($this->_config['levels'])) {
$normalized = true;
$this->_config['levels'] = (array)$this->_config['levels'];
}

if (isset($this->_config['types']) && empty($this->_config['levels'])) {
$normalized = true;
if (!empty($this->_config['types']) && empty($this->_config['levels'])) {
$this->_config['levels'] = (array)$this->_config['types'];
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/Log/Engine/FileLog.php
Expand Up @@ -76,7 +76,7 @@ class FileLog extends BaseLog {
* @param array $config Configuration array
*/
public function __construct(array $config = []) {
parent::config($config);
parent::__construct($config);

if (!empty($this->_config['path'])) {
$this->_path = $this->_config['path'];
Expand Down

0 comments on commit d23e2f1

Please sign in to comment.