We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8b61940 commit 673fb0bCopy full SHA for 673fb0b
includes/bootstrap.inc
@@ -554,6 +554,22 @@ function drupal_settings_initialize() {
554
}
555
$is_https = isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on';
556
557
+ // Load environmental config, if present.
558
+ if (isset($_SERVER['PRESSFLOW_SETTINGS'])) {
559
+ $pressflow_settings = json_decode($_SERVER['PRESSFLOW_SETTINGS']);
560
+ foreach ($pressflow_settings as $key => $value) {
561
+ // One level of depth should be enough for $conf and $database.
562
+ if ($key == 'conf') {
563
+ foreach($value as $conf_key => $conf_value) {
564
+ $conf[$conf_key] = $value;
565
+ }
566
567
+ else {
568
+ $$key = $value;
569
570
571
572
+
573
if (isset($base_url)) {
574
// Parse fixed base URL from settings.php.
575
$parts = parse_url($base_url);
0 commit comments