1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-14 02:24:08 +02:00

Fix for news-comment moderate button. Use https for generated YouTube thumbnails.

This commit is contained in:
Cameron
2016-12-13 11:22:07 -08:00
parent a1588ed318
commit 2e3e980f13
3 changed files with 4 additions and 3 deletions

View File

@@ -4060,7 +4060,7 @@ class e_parser
if($type == 'youtube')
{
// $thumbSrc = "https://i1.ytimg.com/vi/".$id."/0.jpg";
$thumbSrc = "http://i1.ytimg.com/vi/".$id."/mqdefault.jpg";
$thumbSrc = "https://i1.ytimg.com/vi/".$id."/mqdefault.jpg";
$video = '<iframe class="embed-responsive-item" width="560" height="315" src="//www.youtube.com/embed/'.$id.'?'.$ytqry.'" style="background-size: 100%;background-image: url('.$thumbSrc.');border:0px" allowfullscreen></iframe>';