Permalink
Browse files

Merged heads

  • Loading branch information...
lildude committed May 28, 2011
2 parents 77fcf1a + 7dfd67c commit b01152dceab1803053395acc583a2eacc4a174f3
Showing with 1 addition and 2 deletions.
  1. +1 −2 examples/example-oauth.php
@@ -70,7 +70,6 @@
} else {
$reqToken = unserialize( $_SESSION['SmugGalReqToken'] );
unset( $_SESSION['SmugGalReqToken'] );
- session_unregister( 'SmugGalReqToken' );
// Step 3: Use the Request token obtained in step 1 to get an access token
$f->setToken("id={$reqToken['Token']['id']}", "Secret={$reqToken['Token']['Secret']}");
@@ -85,7 +84,7 @@
$images = $f->images_get( "AlbumID={$albums['0']['id']}", "AlbumKey={$albums['0']['Key']}", "Heavy=1" );
// Display the thumbnails and link to the Album page for each image
foreach ( $images['Images'] as $image ) {
- echo '<a href="'.$image['AlbumURL'].'"><img src="'.$image['TinyURL'].'" title="'.$image['Caption'].'" alt="'.$image['id'].'" /></a>';
+ echo '<a href="'.$image['URL'].'"><img src="'.$image['TinyURL'].'" title="'.$image['Caption'].'" alt="'.$image['id'].'" /></a>';
}
}
}

0 comments on commit b01152d

Please sign in to comment.