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!)

CommentFileSizeAuthor
#1 siteinc2.patch545 bytessteveparks
siteinc.patch517 bytessteveparks

Comments

steveparks’s picture

Status: Active » Needs review
StatusFileSize
new545 bytes

Altered patch to include conf_path() to find site.inc in correct dir.

anarcat’s picture

Status: Needs review » Closed (duplicate)

This 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.