aboutsummaryrefslogtreecommitdiff
path: root/actions/flickrImportPhotoset.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2010-07-25 02:01:36 +0000
committerCash Costello <cash.costello@gmail.com>2010-07-25 02:01:36 +0000
commit73403645808a81425381f43c25e0ea2c92705312 (patch)
tree83fb73e9a122054f6f4c2e1c44e399572ee13e28 /actions/flickrImportPhotoset.php
parent791ec4925346cb38ecca9a2f2574b012ab64a88a (diff)
downloadelgg-73403645808a81425381f43c25e0ea2c92705312.tar.gz
elgg-73403645808a81425381f43c25e0ea2c92705312.tar.bz2
first go at brining tidypics up to code standards
Diffstat (limited to 'actions/flickrImportPhotoset.php')
-rw-r--r--actions/flickrImportPhotoset.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/actions/flickrImportPhotoset.php b/actions/flickrImportPhotoset.php
index ec0d65b5d..fd6769e3a 100644
--- a/actions/flickrImportPhotoset.php
+++ b/actions/flickrImportPhotoset.php
@@ -28,11 +28,11 @@ $photos_url = $f->urls_getUserPhotos( $flickr_id->value );
$photos = $f->photosets_getPhotos( $set_id, null, null, 10, $page_pp );
$photos_to_upload = array();
-foreach( $photos["photoset"]["photo"] as $photo ) {
+foreach ($photos["photoset"]["photo"] as $photo) {
//check if we already have this image
$meta = get_metadata_byname( $user->guid, $photo["id"] );
- if( $meta->value == 1 ) { //we've downloaded this already
+ if ($meta->value == 1) { //we've downloaded this already
register_error( elgg_echo( 'flickr:errorimageimport' ));
continue;
}
@@ -41,7 +41,7 @@ foreach( $photos["photoset"]["photo"] as $photo ) {
$photo_info = $f->photos_getInfo( $photo["id"], $photo["secret"] );
$tags = array();
- foreach( $photo_info["tags"]["tag"] as $tag ) {
+ foreach ($photo_info["tags"]["tag"] as $tag) {
$tags[] = $tag["raw"];
}
$tags = implode( ", ", $tags );
@@ -337,4 +337,3 @@ trigger_elgg_event('upload', 'tp_album', $album);
$url = $CONFIG->wwwroot . 'mod/tidypics/pages/edit_multiple.php?files=' . implode('-', $uploaded_images);
forward($url);
-?>