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