We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87e5d6c commit dd52756Copy full SHA for dd52756
admin/starter/tests/unit/ExampleTest.php
@@ -19,10 +19,9 @@ public function testBaseUrlHasBeenSet()
19
$env = $config = false;
20
21
// First check in .env
22
- $dotenv = new \CodeIgniter\Config\DotEnv(HOMEPATH);
23
- if ($vars = $dotenv->parse())
+ if (is_file(HOMEPATH . '.env'))
24
{
25
- $env = ! empty($vars['app.baseUrl']);
+ $env = (bool) preg_grep("/^app\.baseURL = './", file(HOMEPATH . '.env'));
26
}
27
28
// Then check the actual config file
0 commit comments