]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
MagicEnvelope::parse shouldn't be called statically
authorJames Walker <walkah@walkah.net>
Fri, 26 Feb 2010 22:09:50 +0000 (17:09 -0500)
committerJames Walker <walkah@walkah.net>
Fri, 26 Feb 2010 22:09:50 +0000 (17:09 -0500)
plugins/OStatus/lib/salmonaction.php

index 9ca350e6713ae161db3d04c094f6919b6f0dda22..fa9dc3b1daf11cb9fe759fa271a9f087aef09a84 100644 (file)
@@ -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);
         }