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

darcs-hash:20080816151057-84dde-e9df2c91a2711b235aa936a28e250715fc7c6d50.gz
This commit is contained in:
Evan Prodromou 2008-08-16 11:10:57 -04:00
parent 35d1714621
commit 5b01880685

View 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");
}