diff --git a/Puc/v4p8/Vcs/BitBucketApi.php b/Puc/v4p8/Vcs/BitBucketApi.php index 872f0d0..1be2927 100644 --- a/Puc/v4p8/Vcs/BitBucketApi.php +++ b/Puc/v4p8/Vcs/BitBucketApi.php @@ -140,7 +140,7 @@ if ( !class_exists('Puc_v4p8_Vcs_BitBucketApi', false) ): * @param string $ref * @return string */ - protected function getDownloadUrl($ref) { + protected function getDownloadUrl($ref, $method = 'download') { // Added functionality to allow download as method if( $method == 'download' ) { $endpoint = 'https://api.bitbucket.org/2.0/repositories/%s/%s/downloads/%s.zip';