StatusNet_network staticGet lookup fix

This commit is contained in:
Brion Vibber 2010-08-10 17:22:26 -07:00
parent 5c210f724a
commit 19e6b84050
2 changed files with 2 additions and 2 deletions

View File

@ -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'");

View File

@ -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)) {