Closed (duplicate)
Project:
Provision
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
3 Aug 2009 at 13:45 UTC
Updated:
3 Aug 2009 at 18:47 UTC
Jump to comment: Most recent file
The template for settings.php currently includes a 'global.inc' file for host wide customisations of settings.php
It would be good if it also included a site.inc file from the current site's directory to allow admins to effectively add custom lines to the settings.php file just for that site.
EG:
# Additional site configuration settings. Useful for safely specifying configuration settings.
if (file_exists('site.inc')) {
include_once('site.inc');
}
patch file attached (this is my first time doing a patch file - be gentle if i get it wrong!)
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | siteinc2.patch | 545 bytes | steveparks |
| siteinc.patch | 517 bytes | steveparks |
Comments
Comment #1
steveparks commentedAltered patch to include conf_path() to find site.inc in correct dir.
Comment #2
anarcat commentedThis is a dupe from #500088: allow user-defined settings.php overrides, Please move the patch over there, as there are insightful comments from Adrian there that needs to be considered.