Browse Source

removed unnecessary checks in Config

1.0
Vladimir Grigor 10 years ago
parent
commit
6ecaf41336
  1. 9
      Mage/Config.php

9
Mage/Config.php

@ -170,14 +170,10 @@ class Config
{
$environment = $this->getEnvironment();
if(!empty($environment))
{
$configFilePath = getcwd() . '/.mage/config/environment/' . $environment . '.yml';
$parameters = $this->getParameters();
if (empty($environment) && (!empty($parameters) || !$this->isRunInSpecialMode($parameters))) {
throw new RuntimeException('Environment is not set');
}
try {
$this->environmentConfig = $this->loadEnvironment($configFilePath);
} catch (ConfigNotFoundException $e) {
@ -185,6 +181,7 @@ class Config
}
}
}
/**
*

Loading…
Cancel
Save