]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
name omb_listener param so we can refer to it in error msg
authorEvan Prodromou <evan@prodromou.name>
Sat, 16 Aug 2008 15:10:57 +0000 (11:10 -0400)
committerEvan Prodromou <evan@prodromou.name>
Sat, 16 Aug 2008 15:10:57 +0000 (11:10 -0400)
darcs-hash:20080816151057-84dde-e9df2c91a2711b235aa936a28e250715fc7c6d50.gz

actions/userauthorization.php

index 6ae3434a6d5863b7c3a141a6a4b1dba7b9cb84cb..3c592ecd4281d01c35c368334ccad12f85bbbf35 100644 (file)
@@ -385,7 +385,8 @@ class UserauthorizationAction extends Action {
                if ($version != OMB_VERSION_01) {
                        throw new OAuthException("OpenMicroBlogging version '$version' not supported");
                }
-               $user = User::staticGet('uri', $req->get_parameter('omb_listener'));
+               $listener =     $req->get_parameter('omb_listener');
+               $user = User::staticGet('uri', $listener);
                if (!$user) {
                        throw new OAuthException("Listener URI '$listener' not found here");
                }