Merged str_replace functions
This commit is contained in:
parent
286868933e
commit
87fac4d19c
2 changed files with 3 additions and 12 deletions
|
@ -42,11 +42,6 @@
|
|||
*/
|
||||
private $Modified;
|
||||
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
private $FromEnvironment;
|
||||
|
||||
/**
|
||||
* Public Constructor
|
||||
*
|
||||
|
@ -56,10 +51,7 @@
|
|||
{
|
||||
// Sanitize $name for file path
|
||||
$name = strtolower($name);
|
||||
$name = str_replace('/', '_', $name);
|
||||
$name = str_replace('\\', '_', $name);
|
||||
$name = str_replace('.', '_', $name);
|
||||
$this->FromEnvironment = false;
|
||||
$name = str_replace(array('/', '\\', '.'), '_', $name);
|
||||
|
||||
if(!getenv(sprintf("CONFIGLIB_%s", strtoupper($name))))
|
||||
{
|
||||
|
@ -67,7 +59,6 @@
|
|||
if(file_exists($environment_config))
|
||||
{
|
||||
$this->Path = $environment_config;
|
||||
$this->FromEnvironment = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue