Permalink
Browse files

fix wrong exception class name

  • Loading branch information...
zagraves committed Mar 3, 2010
1 parent 82d73fd commit 55e19352b005e09071912a9a26e158680e350885
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Yahoo/YahooOAuthApplication.class.php
@@ -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);

0 comments on commit 55e1935

Please sign in to comment.