Commit 5b740080 authored by Joe Hoyle's avatar Joe Hoyle
Browse files

Fix URLs when not using a url replacement constant

parent 84423004
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -128,6 +128,10 @@ class CachingEntityBody extends AbstractEntityBodyDecorator

                $data .= $remoteData;
                $this->body->write($remoteData);

                if ( ! $remoteData ) {
                    break;
                }
            }
            

+1 −1
Original line number Diff line number Diff line
@@ -72,7 +72,7 @@ class S3_Uploads {
		$bucket = strtok( $this->bucket, '/' );
		$path   = substr( $this->bucket, strlen( $bucket ) );

		return 'https://' . $bucket . '.s3.amazonaws.com' . ( $path ? '/' . $path : '' );
		return 'https://' . $bucket . '.s3.amazonaws.com' . $path;
	}

	public function get_original_upload_dir() {