add dataProvider to test buildFileName and fix related errors

This commit is contained in:
norb 2021-01-12 17:53:42 +01:00
commit 6d3158a5c7
2 changed files with 43 additions and 11 deletions

View file

@ -86,9 +86,9 @@ class Settings implements \Iterator
// prefix() {{{
/** {{{
*///}}}
public function prefix( string $prefix )
public function prefix( ?string $prefix=null )
{
$this->filePrefix = "$prefix.";
$this->filePrefix = (isset($prefix)) ? "$prefix." : '';
return $this;
}// }}}
@ -226,7 +226,7 @@ class Settings implements \Iterator
if ($type === self::SITE) $path .= $this->site.'/';
if (is_string( $type ))
if (is_string( $type ) &! empty( $type ))
{
$mode = "$type.";
$path = $this->pkgPath.$this->confDir;