Skip to content

Commit

Permalink
Revert
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Neto committed Oct 2, 2024
1 parent de17a71 commit 7e72c35
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions objects/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -6067,16 +6067,11 @@ function getCDN($type = 'CDN', $id = 0)
$_getCDNURL[$index] = CDN::getURL($type, $id);
}
}

if ($type == 'CDN') {
if (!empty($global['ignoreCDN'])) {
return $global['webSiteRootURL'];
} elseif (!empty($advancedCustom) && !empty($advancedCustom->videosCDN) && isValidURL($advancedCustom->videosCDN)) {
$_getCDNURL[$index] = addLastSlash($advancedCustom->videosCDN);
} elseif ($obj = AVideoPlugin::getDataObject('AWS_S3') && isValidURL($obj->CDN_Link)) {
$_getCDNURL[$index] = addLastSlash($obj->CDN_Link);
} elseif ($obj = AVideoPlugin::getDataObject('Blackblaze_B2') && isValidURL($obj->CDN_Link)) {
$_getCDNURL[$index] = addLastSlash($obj->CDN_Link);
} elseif (empty($_getCDNURL[$index])) {
$_getCDNURL[$index] = $global['webSiteRootURL'];
}
Expand Down

0 comments on commit 7e72c35

Please sign in to comment.