phplist3
phplist3 copied to clipboard
CLI: config file autodiscovery doesn't work as expected
https://github.com/phpList/phplist3/blob/master/public_html/lists/admin/index.php#L68
I think lines 68 and 70 should be changed from:
$configfile = '../config/config.php';
to:
$configfile = dirname(__FILE__).'../config/config.php';
Can you explain in what situation that change has made things work better?
When calling the admin's index.php from command-line, with the change, the location of the config file (if not explicitly specified with -c
) does not depend on the current working directory anymore.
ok, sure, but that's what the -c parameter is for.
If you want to submit a PR, you're very welcome. Please make sure to sign the CLA before you do.
Resolved with #977