StatusNet_network staticGet lookup fix
This commit is contained in:
parent
5c210f724a
commit
19e6b84050
@ -141,7 +141,7 @@ class StatusNet
|
||||
return true;
|
||||
}
|
||||
|
||||
$sn = Status_network::staticGet($nickname);
|
||||
$sn = Status_network::staticGet('nickname', $nickname);
|
||||
if (empty($sn)) {
|
||||
return false;
|
||||
throw new Exception("No such site nickname '$nickname'");
|
||||
|
@ -649,7 +649,7 @@ class StompQueueManager extends QueueManager
|
||||
*/
|
||||
protected function updateSiteConfig($nickname)
|
||||
{
|
||||
$sn = Status_network::staticGet($nickname);
|
||||
$sn = Status_network::staticGet('nickname', $nickname);
|
||||
if ($sn) {
|
||||
$this->switchSite($nickname);
|
||||
if (!in_array($nickname, $this->sites)) {
|
||||
|
Loading…
Reference in New Issue
Block a user