Skip to content

Commit

Permalink
OEL-2861: Add protocol to AV Portal URIs.
Browse files Browse the repository at this point in the history
  • Loading branch information
brummbar committed Mar 15, 2024
1 parent fd3fe83 commit 1f91c70
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions oe_showcase.post_update.php
Original file line number Diff line number Diff line change
Expand Up @@ -863,3 +863,13 @@ function oe_showcase_post_update_00037(): void {
->grantPermission('unflag subscribe_node')
->save();
}

/**
* Update the Media AV Portal URIs to include HTTPS.
*/
function oe_showcase_post_update_00038(): void {
$config = \Drupal::configFactory()->getEditable('media_avportal.settings');
$config->set('iframe_base_uri', 'https://ec.europa.eu/avservices/play.cfm');
$config->set('photos_base_uri', 'https://ec.europa.eu/avservices/avs/files/video6/repository/prod/photo/store/');
$config->save();
}

0 comments on commit 1f91c70

Please sign in to comment.