bugfix/30517-check-mode-for-demo-not-domain #1
1 changed files with 33 additions and 24 deletions
|
|
@ -352,7 +352,16 @@ class Settings implements \Iterator, \Countable
|
||||||
{
|
{
|
||||||
unset( $this->settings[$name] );
|
unset( $this->settings[$name] );
|
||||||
}
|
}
|
||||||
// }}}
|
|
||||||
|
public function __call(string $name, array $arguments)
|
||||||
|
{
|
||||||
|
$type = substr($name, 0, 3);
|
||||||
|
if ($type === 'get') {
|
||||||
|
$propertyName = lcfirst(substr($name , 3));
|
||||||
|
return (is_array( $this->settings[$propertyName] ))
|
||||||
|
? $this->create( $this->settings[$propertyName] )
|
||||||
|
: $this->settings[$propertyName]; }
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue