Skip to content

Commit

Permalink
Added missing hidden header for image uploads that should be hidden. F…
Browse files Browse the repository at this point in the history
…ixes #12
  • Loading branch information
lildude committed Jun 21, 2011
1 parent 38bbccb commit b426913
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion phpSmug.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'] );
Expand Down Expand Up @@ -1537,4 +1538,4 @@ private function _unchunk( $body )
}
}

?>
?>

0 comments on commit b426913

Please sign in to comment.