From: Evan Prodromou <evan@prodromou.name>
Date: Sat, 16 Aug 2008 15:10:57 +0000 (-0400)
Subject: name omb_listener param so we can refer to it in error msg
X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5b01880685f41a413f7590e75c6b219f258972f9;p=quix0rs-gnu-social.git

name omb_listener param so we can refer to it in error msg

darcs-hash:20080816151057-84dde-e9df2c91a2711b235aa936a28e250715fc7c6d50.gz
---

diff --git a/actions/userauthorization.php b/actions/userauthorization.php
index 6ae3434a6d..3c592ecd42 100644
--- a/actions/userauthorization.php
+++ b/actions/userauthorization.php
@@ -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");
 		}