We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
using eval and os detection is quite uncool
eval
if (false === $this->isWindows()) { $local_config_file = exec('eval echo ~/.grav/config'); if (file_exists($local_config_file)) { $this->local_config = Yaml::parse($local_config_file); $this->output->writeln('Read local config from <cyan>' . $local_config_file . '</cyan>'); } }
the home directory can be read from a php server variable $_SERVER[HOME] so such an ugly hack would not be necessary.
$_SERVER[HOME]
The text was updated successfully, but these errors were encountered:
Good catch. Made a PR to fix this, glad if you can test it on Windows, as I don't have a Win machine at hand now.
Sorry, something went wrong.
PR merged
flaviocopes
No branches or pull requests
using
eval
and os detection is quite uncoolthe home directory can be read from a php server variable
$_SERVER[HOME]
so such an ugly hack would not be necessary.The text was updated successfully, but these errors were encountered: