I have changed the config to:
/**
* Load a host-specific config file if configured
* This will merge the host specific configuration with the given one
*/
private function load_host_config()
{
if (empty($this->prop['include_host_config'])) {
return;
}
foreach (array('HTTP_HOST', 'SERVER_NAME', 'SERVER_ADDR') as $key) {
$fname = null;
$name = $_SERVER[$key];
rcube::write_log('debug', 'loadhost');
if (!$name) {
continue;
rcube::write_log('debug', 'loadhost');
}
if (is_array($this->prop['include_host_config'])) {
$fname = $this->prop['include_host_config'][$name];
rcube::write_log('debug', 'loadhost');
}
else {
$fname = preg_replace('/[^a-z0-9\.\-_]/i', '', $name) . '.inc.php';
rcube::write_log('debug', 'loadhost');
}
if ($fname && $this->load_from_file($fname)) {
return;
rcube::write_log('debug', 'loadhost');
}
}
}
The only thing in the debug file is:
[21-Feb-2016 10:42:56 +0100]: loadhost[/code
No error or anything else.
Am I doing it incorrectly?