From d61ccf69f798f508f0ef83ede43eb6db8dcb519d Mon Sep 17 00:00:00 2001 From: Norbert Wagner Date: Wed, 6 Jan 2021 12:57:41 +0100 Subject: [PATCH] correct typo in variable name and remove unused variable --- src/Settings.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 )) {