Skip to content

Commit

Permalink
fix wrong exception class name
Browse files Browse the repository at this point in the history
  • Loading branch information
zagraves committed Mar 3, 2010
1 parent 82d73fd commit 55e1935
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Yahoo/YahooOAuthApplication.class.php
Expand Up @@ -157,12 +157,12 @@ public static function fromYAP($consumer_key, $consumer_secret, $application_id)
{
$is_canvas = (isset($_POST['yap_appid']) && isset($_POST['yap_view']) && isset($_POST['oauth_signature']));
if($is_canvas === false) {
throw new YahooOAuthException('YAP application environment not found in request.');
throw new YahooOAuthApplicationException('YAP application environment not found in request.');
}

$yap_consumer_key = $_POST['yap_consumer_key'];
if($consumer_key != $yap_consumer_key) {
throw new YahooOAuthException(sprintf('Provided consumer key does not match yap_consumer_key: (%s)', $yap_consumer_key));
throw new YahooOAuthApplicationException(sprintf('Provided consumer key does not match yap_consumer_key: (%s)', $yap_consumer_key));
}

$consumer = new OAuthConsumer($consumer_key, $consumer_secret);
Expand Down

0 comments on commit 55e1935

Please sign in to comment.