Skip to content

Commit

Permalink
Update S3 bucket URL
Browse files Browse the repository at this point in the history
  • Loading branch information
Mat Chapman committed Mar 21, 2016
1 parent c0e112d commit a945bb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gathercontent.php
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ function download_media() {
$filename = wp_unique_filename( $uploads['path'], $file['original_filename'], null );
$new_file = $uploads['path'] . '/' . $filename;
$fp = fopen( $new_file, 'w' );
$resp = $this->_curl( 'https://gathercontent.s3.amazonaws.com/' . $file['filename'], array(CURLOPT_FILE => $fp) );
$resp = $this->_curl( 'https://gathercontent-production-uploads.s3.amazonaws.com/' . $file['filename'], array(CURLOPT_FILE => $fp) );
fclose( $fp );
if ( $resp['httpcode'] == 200 ) {
extract( wp_check_filetype( $new_file ) );
Expand Down

0 comments on commit a945bb9

Please sign in to comment.