diff options
author | Zach Copley <zach@status.net> | 2010-02-18 01:47:44 +0000 |
---|---|---|
committer | Zach Copley <zach@status.net> | 2010-02-18 01:48:24 +0000 |
commit | 1aeca3947d7c938b9d14334d74f0fecd57a4eaf5 (patch) | |
tree | 9f86b2b20b91ac9adb0de33fcd8490af59c8dd74 /lib | |
parent | 73ba26efe3d9d97c478a507d351ac92d28d82655 (diff) |
Fix for cross site OMB posting problem
Diffstat (limited to 'lib')
-rw-r--r-- | lib/omb.php | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/omb.php b/lib/omb.php index 0f38a4936..17132a594 100644 --- a/lib/omb.php +++ b/lib/omb.php @@ -29,11 +29,9 @@ require_once 'Auth/Yadis/Yadis.php'; function omb_oauth_consumer() { - static $con = null; - if (is_null($con)) { - $con = new OAuthConsumer(common_root_url(), ''); - } - return $con; + // Don't try to make this static. Leads to issues in + // multi-site setups - Z + return new OAuthConsumer(common_root_url(), ''); } function omb_oauth_server() |