Removing redudant code.

Filelog with scopes needs the file name to be specified so the first `if` covers scopes too.
This commit is contained in:
ADmad 2013-02-13 00:42:21 +05:30
parent f6215129f6
commit 213e81bdbd

View file

@ -80,8 +80,6 @@ class FileLog extends BaseLog {
$filename = $this->_path . 'error.log'; $filename = $this->_path . 'error.log';
} elseif (in_array($type, $debugTypes)) { } elseif (in_array($type, $debugTypes)) {
$filename = $this->_path . 'debug.log'; $filename = $this->_path . 'debug.log';
} elseif (in_array($type, $this->_config['scopes'])) {
$filename = $this->_path . $this->_file;
} else { } else {
$filename = $this->_path . $type . '.log'; $filename = $this->_path . $type . '.log';
} }