Added method variable

This commit is contained in:
stefan-woudstra 2020-02-18 11:13:08 +01:00 committed by GitHub
parent fee73d566e
commit 620419631b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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';