From: Zach Copley Date: Thu, 18 Feb 2010 01:47:44 +0000 (+0000) Subject: Fix for cross site OMB posting problem X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f55ef878f603d81857509f42f50c1a28b1a8e1f2;p=quix0rs-gnu-social.git Fix for cross site OMB posting problem --- diff --git a/lib/omb.php b/lib/omb.php index 0f38a49369..17132a594f 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()