Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Neto committed Oct 2, 2024
1 parent 40afe95 commit c94470b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions objects/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -6074,8 +6074,8 @@ function getCDN($type = 'CDN', $id = 0)
} else if (!empty($advancedCustom) && !empty($advancedCustom->videosCDN) && isValidURL($advancedCustom->videosCDN)) {
$_getCDNURL[$index] = addLastSlash($advancedCustom->videosCDN);
} else {
$obj1 = AVideoPlugin::getDataObject('AWS_S3');
$obj2 = AVideoPlugin::getDataObject('Blackblaze_B2');
$obj1 = AVideoPlugin::getDataObjectIfEnabled('AWS_S3');
$obj2 = AVideoPlugin::getDataObjectIfEnabled('Blackblaze_B2');
if (!empty($obj1) && isValidURL($obj1->CDN_Link)) {
$_getCDNURL[$index] = addLastSlash($obj1->CDN_Link);
} else if (!empty($obj2) && isValidURL($obj2->CDN_Link)) {
Expand Down

0 comments on commit c94470b

Please sign in to comment.