Skip to content

Commit

Permalink
Use HTTPS for youtube video link
Browse files Browse the repository at this point in the history
  • Loading branch information
mattab committed Jun 13, 2014
1 parent f09625b commit 50dece7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugins/CoreHome/Controller.php
Expand Up @@ -204,7 +204,7 @@ public function getPromoVideo()
$view = new View('@CoreHome/getPromoVideo');
$view->shareText = Piwik::translate('CoreHome_SharePiwikShort');
$view->shareTextLong = Piwik::translate('CoreHome_SharePiwikLong');
$view->promoVideoUrl = 'http://www.youtube.com/watch?v=OslfF_EH81g';
$view->promoVideoUrl = 'https://www.youtube.com/watch?v=OslfF_EH81g';
return $view->render();
}

Expand Down
2 changes: 1 addition & 1 deletion plugins/CoreHome/templates/getPromoVideo.twig
Expand Up @@ -42,7 +42,7 @@
var promoEmbed = $('#piwik-promo-embed'),
widgetWidth = $(this).closest('.widgetContent').width(),
height = (266 * widgetWidth) / 421,
embedHtml = '<iframe width="100%" height="' + height + '" src="http://www.youtube.com/embed/OslfF_EH81g?autoplay=1&vq=hd720&wmode=transparent" frameborder="0" wmode="Opaque"></iframe>';
embedHtml = '<iframe width="100%" height="' + height + '" src="https://www.youtube.com/embed/OslfF_EH81g?autoplay=1&vq=hd720&wmode=transparent" frameborder="0" wmode="Opaque"></iframe>';
$(this).hide();
promoEmbed.height(height).html(embedHtml);
Expand Down

0 comments on commit 50dece7

Please sign in to comment.