add dataProvider to test buildFileName and fix related errors
This commit is contained in:
parent
20f962b26d
commit
6d3158a5c7
2 changed files with 43 additions and 11 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue