From: Evan Prodromou Date: Sun, 10 Jan 2010 08:20:08 +0000 (-0800) Subject: always set site/server to hostname if it exists X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e2dee5fedbedef69fbc825fcac39973f91f09c1a;p=quix0rs-gnu-social.git always set site/server to hostname if it exists --- diff --git a/classes/Status_network.php b/classes/Status_network.php index 1f0e602cf7..776f6abb03 100644 --- a/classes/Status_network.php +++ b/classes/Status_network.php @@ -170,7 +170,11 @@ class Status_network extends DB_DataObject $config['db']['database'] = "mysqli://$dbuser:$dbpass@$dbhost/$dbname"; - $config['site']['name'] = $sn->sitename; + $config['site']['name'] = $sn->sitename; + + if (!empty($sn->hostname)) { + $config['site']['server'] = $sn->hostname; + } if (!empty($sn->theme)) { $config['site']['theme'] = $sn->theme;