diff --git a/src/Settings.php b/src/Settings.php index 1fe803c..90124f9 100644 --- a/src/Settings.php +++ b/src/Settings.php @@ -167,7 +167,7 @@ class Settings implements \Iterator // load and merge Prefix.mode.conf.php if ( isset( $modes[ $this->mode ] ) ) { - $modeConf = $this->buildFileName( $modes[ $this->mode ], $ext ); + $modeConf = $this->buildFileName( $modes[ $this->mode ] ); if ( file_exists($modeConf) ) { @@ -224,7 +224,7 @@ class Settings implements \Iterator $mode = ''; $path = $this->appPath.$this->confDir; - if ($tpye === self::SITE) $path .= $this->site.'/'; + if ($type === self::SITE) $path .= $this->site.'/'; if (is_string( $type )) {