|
@@ 126-131 (lines=6) @@
|
| 123 |
|
$file = "$path.php"; |
| 124 |
|
|
| 125 |
|
// The configuration is found in ONLY a file |
| 126 |
|
if (is_readable($path) && is_file($path)) { |
| 127 |
|
$found = true; |
| 128 |
|
$config["file"] = $path; |
| 129 |
|
$config["config"] = require $path; |
| 130 |
|
break; |
| 131 |
|
} |
| 132 |
|
|
| 133 |
|
// The configuration is found in a file |
| 134 |
|
if (is_readable($file) && is_file($file)) { |
|
@@ 134-138 (lines=5) @@
|
| 131 |
|
} |
| 132 |
|
|
| 133 |
|
// The configuration is found in a file |
| 134 |
|
if (is_readable($file) && is_file($file)) { |
| 135 |
|
$found = true; |
| 136 |
|
$config["file"] = $file; |
| 137 |
|
$config["config"] = require $file; |
| 138 |
|
} |
| 139 |
|
|
| 140 |
|
// The configuration is found in a directory |
| 141 |
|
if (is_readable($path) && is_dir($path)) { |