aboutsummaryrefslogtreecommitdiff
path: root/pages/flickr/importPhotosets.php
diff options
context:
space:
mode:
authorGreg Froese <greg.froese@gmail.com>2009-10-09 03:23:52 +0000
committerGreg Froese <greg.froese@gmail.com>2009-10-09 03:23:52 +0000
commit71b4d8c3c3343455552a76756e5aaacd82034c4e (patch)
tree6fa9ed22a82a1815d63412bbab236283ed1bac62 /pages/flickr/importPhotosets.php
parent9aa79bc38829f164bacc6b522278d0098b597933 (diff)
downloadelgg-71b4d8c3c3343455552a76756e5aaacd82034c4e.tar.gz
elgg-71b4d8c3c3343455552a76756e5aaacd82034c4e.tar.bz2
flickr integration updates
Diffstat (limited to 'pages/flickr/importPhotosets.php')
-rw-r--r--pages/flickr/importPhotosets.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/pages/flickr/importPhotosets.php b/pages/flickr/importPhotosets.php
index c9b4416e4..fe241439e 100644
--- a/pages/flickr/importPhotosets.php
+++ b/pages/flickr/importPhotosets.php
@@ -18,6 +18,12 @@
$viewer = get_loggedin_user();
$flickr_username = get_metadata_byname( $viewer->guid, "flickr_username" );
$flickr_id = get_metadata_byname( $viewer->guid, "flickr_id" );
+ $album_id = get_metadata_byname( $viewer->guid, "flickr_album_id" );
+
+ if( intval( $album_id->value ) <= 0 ) {
+ register_error( "No album selected. Please choose and save an album: $album_id->value" );
+ forward( "/mod/tidypics/pages/flickr/setup.php" );
+ }
$photosets = $f->photosets_getList( $flickr_id->value );
foreach( $photosets["photoset"] as $photoset ) {
@@ -29,7 +35,7 @@
//create links to import photos 10 at a time
while( $photoset["photos"] > $count ) {
$looper++;
- $body .= " <a href='/mod/tidypics/actions/flickrImportPhotoset.php?set_id=$photoset[id]&page=$looper'>$looper</a>";
+ $body .= " <a href='/mod/tidypics/actions/flickrImportPhotoset.php?set_id=$photoset[id]&page=$looper&album_id=$album_id->value'>$looper</a>";
$count = $count + 10;
}
$body .= "<br />$photoset[photos] images";