diff options
author | Zach Copley <zach@status.net> | 2010-02-18 01:47:44 +0000 |
---|---|---|
committer | Zach Copley <zach@status.net> | 2010-02-18 03:49:19 +0000 |
commit | 5e60bf2ca65f5e862fa1741e42d35e2ae7bb5559 (patch) | |
tree | 3d2399f7a4b619f32cc02f775a2c756490a0ffa4 /lib | |
parent | a80fdf3142d05bdae77874acc7413cbbd70fad3d (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() |