correct typo in variable name and remove unused variable

This commit is contained in:
Norbert Wagner 2021-01-06 12:57:41 +01:00
parent 3a53491810
commit d61ccf69f7

View file

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