From: James Walker Date: Fri, 26 Feb 2010 22:09:50 +0000 (-0500) Subject: MagicEnvelope::parse shouldn't be called statically X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1cf08c7ad7704cd92d59f319573e831d1115e996;p=quix0rs-gnu-social.git MagicEnvelope::parse shouldn't be called statically --- diff --git a/plugins/OStatus/lib/salmonaction.php b/plugins/OStatus/lib/salmonaction.php index 9ca350e671..fa9dc3b1da 100644 --- a/plugins/OStatus/lib/salmonaction.php +++ b/plugins/OStatus/lib/salmonaction.php @@ -54,8 +54,9 @@ class SalmonAction extends Action common_log(LOG_DEBUG, "Salmon signature verification failed."); $this->clientError(_m('Salmon signature verification failed.')); } else { - $env = MagicEnvelope::parse($xml); - $xml = MagicEnvelope::unfold($env); + $magic_env = new MagicEnvelope(); + $env = $magic_env->parse($xml); + $xml = $magic_env->unfold($env); }