diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2009-07-21 12:50:45 -0700 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2009-07-21 12:50:45 -0700 |
commit | 0a602725b1c49d246e77b24c723a65cdb0119e8e (patch) | |
tree | 83a9b97c7ccc77e645f44df8aa405e2471aea5ff /scripts/xmppdaemon.php | |
parent | de987a9e63f38a3752491032d7a21759f2cc7560 (diff) | |
parent | 3649b9ffbc40c3695344597330ad9c35b26a4976 (diff) |
Merge branch '0.8.x' of git@gitorious.org:laconica/mainline into 0.8.x
Diffstat (limited to 'scripts/xmppdaemon.php')
-rwxr-xr-x | scripts/xmppdaemon.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/xmppdaemon.php b/scripts/xmppdaemon.php index 488b4b514..69512f243 100755 --- a/scripts/xmppdaemon.php +++ b/scripts/xmppdaemon.php @@ -175,6 +175,10 @@ class XMPPDaemon extends Daemon $user = $this->get_user($from); + // For common_current_user to work + global $_cur; + $_cur = $user; + if (!$user) { $this->from_site($from, 'Unknown user; go to ' . common_local_url('imsettings') . @@ -211,6 +215,7 @@ class XMPPDaemon extends Daemon $user->free(); unset($user); + unset($_cur); unset($pl['xml']); $pl['xml'] = null; |