Skip to content

Instantly share code, notes, and snippets.

@radimklaska
Created September 4, 2017 19:04
Show Gist options
  • Save radimklaska/8130be9f562316f65ec7ef4e68755b95 to your computer and use it in GitHub Desktop.
Save radimklaska/8130be9f562316f65ec7ef4e68755b95 to your computer and use it in GitHub Desktop.
diff --git a/settings/blt.settings.php b/settings/blt.settings.php
index c8ef4d2..5959b88 100644
--- a/settings/blt.settings.php
+++ b/settings/blt.settings.php
@@ -59,8 +59,13 @@
******************************************************************************/
if ($is_ah_env) {
- if (!$is_acsf && file_exists('/var/www/site-php') && $site_dir == 'default') {
- require "/var/www/site-php/{$_ENV['AH_SITE_GROUP']}/{$_ENV['AH_SITE_GROUP']}-settings.inc";
+ if (!$is_acsf && file_exists('/var/www/site-php')) {
+ if ($site_dir == 'default') {
+ require "/var/www/site-php/{$_ENV['AH_SITE_GROUP']}/{$_ENV['AH_SITE_GROUP']}-settings.inc";
+ }
+ else {
+ require "/var/www/site-php/{$_ENV['AH_SITE_GROUP']}/$site_dir-settings.inc";
+ }
}
// Store API Keys and things outside of version control.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment