]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
always set site/server to hostname if it exists
authorEvan Prodromou <evan@status.net>
Sun, 10 Jan 2010 08:20:08 +0000 (00:20 -0800)
committerEvan Prodromou <evan@status.net>
Sun, 10 Jan 2010 08:20:08 +0000 (00:20 -0800)
classes/Status_network.php

index 1f0e602cf77836de5c309dc0391d4d014c90b1a4..776f6abb03002b89393d2c82c682855fac55a76c 100644 (file)
@@ -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;