forked from GNUsocial/gnu-social
save nickname and wildcard when setting up status network
This commit is contained in:
parent
3f5ffe5c5b
commit
8dce24c82c
@ -48,6 +48,7 @@ class Status_network extends DB_DataObject
|
|||||||
|
|
||||||
static $cache = null;
|
static $cache = null;
|
||||||
static $base = null;
|
static $base = null;
|
||||||
|
static $wildcard = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $dbhost
|
* @param string $dbhost
|
||||||
@ -187,7 +188,12 @@ class Status_network extends DB_DataObject
|
|||||||
|
|
||||||
$config['db']['database'] = "mysqli://$dbuser:$dbpass@$dbhost/$dbname";
|
$config['db']['database'] = "mysqli://$dbuser:$dbpass@$dbhost/$dbname";
|
||||||
|
|
||||||
$config['site']['name'] = $sn->sitename;
|
$config['site']['name'] = $sn->sitename;
|
||||||
|
$config['site']['nickname'] = $sn->nickname;
|
||||||
|
|
||||||
|
self::$wildcard = $wildcard;
|
||||||
|
|
||||||
|
$config['site']['wildcard'] =& self::$wildcard;
|
||||||
|
|
||||||
if (!empty($sn->hostname)) {
|
if (!empty($sn->hostname)) {
|
||||||
$config['site']['server'] = $sn->hostname;
|
$config['site']['server'] = $sn->hostname;
|
||||||
@ -230,4 +236,13 @@ class Status_network extends DB_DataObject
|
|||||||
|
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function getServerName()
|
||||||
|
{
|
||||||
|
if (!empty($this->hostname)) {
|
||||||
|
return $this->hostname;
|
||||||
|
} else {
|
||||||
|
return $this->nickname . '.' . self::$wildcard;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user