I'm engaged in the Herculean task of configuring Focus Lab Master Config with an MSM site. I'm trying to write some conditionals based on the site_id
variable, but I keep getting errors.
Right now I'm just running this on my local server, so inside config/config.local.php
, at the bottom, I put:
if ($config['site_id'] == '1') {
$env_config['webmaster_email'] = '[email protected]';
} else {
$env_config['webmaster_email'] = '[email protected]';
}
But when I do this it causes the page to crash (Error 330 (net::ERR_CONTENT_DECODING_FAILED): Unknown error.
). The problem seems to be the site_id
variable, because if I do something like:
if (1 == 1) {
$env_config['webmaster_email'] = '[email protected]';
} else {
$env_config['webmaster_email'] = '[email protected]';
}
Then everything is fine. I tried using $site_id
instead of $config['site_id']
, and I tried site_name
instead of site_id
but it's still not responding.
Any thoughts?