Commit 88406a6d authored by Jon Pugh's avatar Jon Pugh

Issue #2941029: Add platform-wide settings.php includes

parent e79524c8
......@@ -162,6 +162,11 @@ if (isset($_SERVER['db_name'])) {
include_once('<?php print $this->platform->server->include_path ?>/global.inc');
}
# Additional platform wide configuration settings.
if (is_readable('<?php print $this->platform->publish_path ?>/sites/all/platform.settings.php')) {
include_once('<?php print $this->platform->publish_path ?>/sites/all/platform.settings.php');
}
# Additional site configuration settings.
if (is_readable('<?php print $this->site_path ?>/local.settings.php')) {
include_once('<?php print $this->site_path ?>/local.settings.php');
......
......@@ -162,6 +162,11 @@ if (isset($_SERVER['db_name'])) {
include_once('<?php print $this->platform->server->include_path ?>/global.inc');
}
# Additional platform wide configuration settings.
if (is_readable('<?php print $this->platform->publish_path ?>/sites/all/platform.settings.php')) {
include_once('<?php print $this->platform->publish_path ?>/sites/all/platform.settings.php');
}
# Additional site configuration settings.
if (is_readable('<?php print $this->site_path ?>/local.settings.php')) {
include_once('<?php print $this->site_path ?>/local.settings.php');
......
......@@ -189,6 +189,11 @@ if (isset($_SERVER['db_name'])) {
include('<?php print $this->platform->server->include_path ?>/global.inc');
}
# Additional platform wide configuration settings.
if (is_readable('<?php print $this->platform->publish_path ?>/sites/all/platform.settings.php')) {
include('<?php print $this->platform->publish_path ?>/sites/all/platform.settings.php');
}
# Additional site configuration settings.
if (is_readable('<?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