-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
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
Config.inc.php : include local file and document variables #30
Comments
I don't know what are he best practices for that. It seems weird to have 2 config files. Maybe we should have in code all default values, and config file will just be used for modified values?
Not really agree too. PHP file is not a documentation file. We can imagine to create a simple HTML export of the wiki if needed. |
To my mind, it's a best practice. Many softwares use this tip : BIND9, Dokuwiki etc. Code given in my first comment comes from php-memcached-dev. As maintainer, you have one config file to maintain. Local file is for users. Currently, with one config file, upgrading WP is really painful :
With two config files, you can skip steps 1, 3 et 4.
Not agree, users doesn't need to know PHP language to read config. Besides, you need rewrite code because you use
As you want. |
@coudot : if I convince you, we also need to add a note on top of /**
* All the default values are kept here, you should not modify it but use
* config.inc.local.php file instead to override the settings from here.
*/ Extract from Dokuwiki's code. |
Upon reflection on syncing documentation between LTB's wiki and config.inc.php, we need to have at least one sentence for variable in |
I also this kind of request for Self Service Password: ltb-project/self-service-password#72 Your solution seems nice (using config.inc.local.php). This will require some changes in packaging as config.inc.php is flagged as a config file, and so is not replaced in package updates. We now need to let it as a standard program file, so it will be replaced. Users will only set configuration settings in the local file. Regarding documentation, we can indeed put a quick help line in config.inc.php. |
@coudot : what about Debian/RPM packaging ? |
As discussed, we will not put config.inc.local.php in packages, users can create this file if they want to keep the original config.inc.php, or choose to edit config.inc.php directly and merge changes when packages are updated. |
Hello,
I would like to suggest two improvements on config file :
adding following code at end of file to include a local config file (that overrides
config.inc.php
) :There is more than one way to do it. This improvement will be very useful to :
config.inc.php
when doing WP upgrades.syncing documentation between LTB's wiki and config.inc.php
Will be nice to have same documentation between LTB's wiki and config.inc.php. Currently, LTB's wiki documentation is the most complete.
The text was updated successfully, but these errors were encountered: