diff --git a/objects/functions.php b/objects/functions.php index 3891bd473508..10a63db55393 100644 --- a/objects/functions.php +++ b/objects/functions.php @@ -2194,7 +2194,7 @@ function getPorts() $ports = array(); $ports[80] = 'Apache http'; $ports[443] = 'Apache https'; - if(AVideoPlugin::isEnabled('Live')){ + if(AVideoPlugin::isEnabledByName('Live')){ $ports[8080] = 'NGINX http'; $ports[8443] = 'NGINX https'; $ports[1935] = 'RTMP'; @@ -6905,7 +6905,7 @@ function rowToRoku($row) $video->videoType = Video::getVideoTypeText($row['filename']); $content->videos = [$video]; - if (function_exists('getVTTTracks') || AVideoPlugin::isEnabled('SubtitleSwitcher')) { + if (function_exists('getVTTTracks') || AVideoPlugin::isEnabledByName('SubtitleSwitcher')) { $captions = getVTTTracks($row['filename'], true); if (!empty($captions)) { $content->captions = array(); diff --git a/objects/video.php b/objects/video.php index 67cad316434a..3166f2ad9926 100644 --- a/objects/video.php +++ b/objects/video.php @@ -3531,13 +3531,13 @@ static function _getPrivacyInfo($videos_id) $video = new Video("", "", $videos_id); $ppv = AVideoPlugin::getObjectDataIfEnabled("PayPerView"); $response['fans_only'] = $video->getStatus() === self::$statusFansOnly; - if ($response['fans_only'] && AVideoPlugin::isEnabled("FansSubscriptions")) { + if ($response['fans_only'] && AVideoPlugin::isEnabledByName("FansSubscriptions")) { $response['fans_only_info'] = FansSubscriptions::getPlansFromUsersID($video->getUsers_id()); } $response['password_protectd'] = $advancedCustomUser->userCanProtectVideosWithPassword && !empty($video->getVideo_password()); $response['only_for_paid'] = !empty($video->getOnly_for_paid()); $response['pay_per_view'] = $ppv && PayPerView::isVideoPayPerView($videos_id); - if ($response['pay_per_view'] && AVideoPlugin::isEnabled("PayPerView")) { + if ($response['pay_per_view'] && AVideoPlugin::isEnabledByName("PayPerView")) { $response['pay_per_view_info'] = PayPerView::getAllPlansFromVideo($videos_id); } $response['user_groups'] = !Video::isPublic($videos_id); diff --git a/plugin/CustomizeUser/CustomizeUser.php b/plugin/CustomizeUser/CustomizeUser.php index 804096391bb0..6ff57bf6bb19 100644 --- a/plugin/CustomizeUser/CustomizeUser.php +++ b/plugin/CustomizeUser/CustomizeUser.php @@ -723,7 +723,7 @@ public function getModeYouTube($videos_id) forbiddenPage(__("Sorry, this video is private")); } /* - if (!AVideoPlugin::isEnabled('Gallery') && !AVideoPlugin::isEnabled('YouPHPFlix2') && !AVideoPlugin::isEnabled('YouTube')) { + if (!AVideoPlugin::isEnabledByName('Gallery') && !AVideoPlugin::isEnabledByName('YouPHPFlix2') && !AVideoPlugin::isEnabledByName('YouTube')) { header("Location: {$global['webSiteRootURL']}user?msg=" . urlencode(__("Sorry, this video is private"))); } else { header("Location: {$global['webSiteRootURL']}?msg=" . urlencode(__("Sorry, this video is private")));