Commit e79524c8 authored by Jon Pugh's avatar Jon Pugh

Issue #2940702 by Jon Pugh: Unable to override Drupal 8 in local.settings.php:...

Issue #2940702 by Jon Pugh: Unable to override Drupal 8 in local.settings.php: Change `include_once` to `include`. Since Drupal 8 uses `require` and not `require_once`, it's possible settings.php will be included twice. Provision should include custom settings every time.
parent f0225713
...@@ -186,10 +186,10 @@ if (isset($_SERVER['db_name'])) { ...@@ -186,10 +186,10 @@ if (isset($_SERVER['db_name'])) {
# Additional host wide configuration settings. Useful for safely specifying configuration settings. # Additional host wide configuration settings. Useful for safely specifying configuration settings.
if (is_readable('<?php print $this->platform->server->include_path ?>/global.inc')) { if (is_readable('<?php print $this->platform->server->include_path ?>/global.inc')) {
include_once('<?php print $this->platform->server->include_path ?>/global.inc'); include('<?php print $this->platform->server->include_path ?>/global.inc');
} }
# Additional site configuration settings. # Additional site configuration settings.
if (is_readable('<?php print $this->site_path ?>/local.settings.php')) { if (is_readable('<?php print $this->site_path ?>/local.settings.php')) {
include_once('<?php print $this->site_path ?>/local.settings.php'); include('<?php print $this->site_path ?>/local.settings.php');
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment