Skip to content

Commit

Permalink
Fix directory bug
Browse files Browse the repository at this point in the history
  • Loading branch information
byjg committed Mar 18, 2017
1 parent 059fa64 commit 0d18e3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ protected static function loadConfig()

public static function inherit($env)
{
$file = __DIR__ . '/../../../config/config-' . $env . '.php';
$file = __DIR__ . '/../../../../config/config-' . $env . '.php';

if (!file_exists($file)) {
$file = __DIR__ . '/../config/config-' . $env . '.php';
Expand All @@ -22,7 +22,7 @@ public static function inherit($env)
if (!file_exists($file)) {
throw new \Exception(
"The config file '"
. realpath(__DIR__ . '/../../../config/config-' . $env . '.php')
. "config-$env.php'"
. 'does not found'
);
}
Expand Down

0 comments on commit 0d18e3b

Please sign in to comment.