From b4269137e7608d64578cdd481ebaf6c69b9bc563 Mon Sep 17 00:00:00 2001 From: Colin Seymour Date: Tue, 21 Jun 2011 11:35:01 +0100 Subject: [PATCH] Added missing hidden header for image uploads that should be hidden. Fixes #12 --- phpSmug.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/phpSmug.php b/phpSmug.php index c5989b6..61e807c 100644 --- a/phpSmug.php +++ b/phpSmug.php @@ -678,6 +678,7 @@ public function images_upload() ( isset( $args['Latitude'] ) ) ? $upload_req->setHeader( 'X-Smug-Latitude', $args['Latitude'] ) : false; ( isset( $args['Longitude'] ) ) ? $upload_req->setHeader( 'X-Smug-Longitude', $args['Longitude'] ) : false; ( isset( $args['Altitude'] ) ) ? $upload_req->setHeader( 'X-Smug-Altitude', $args['Altitude'] ) : false; + ( isset( $args['Hidden'] ) ) ? $upload_req->setHeader( 'X-Smug-Hidden', $args['Hidden'] ) : false; //$proto = ( $this->oauth_signature_method == 'PLAINTEXT' || $this->secure ) ? 'https' : 'http'; // No secure uploads at this time. //$upload_req->setURL( $proto . '://upload.smugmug.com/'.$args['FileName'] ); @@ -1537,4 +1538,4 @@ private function _unchunk( $body ) } } -?> +?> \ No newline at end of file