mirror of
https://github.com/e107inc/e107.git
synced 2025-08-05 22:27:34 +02:00
Fix for news-comment moderate button. Use https for generated YouTube thumbnails.
This commit is contained in:
@@ -1177,7 +1177,7 @@ class comment
|
||||
|
||||
|
||||
$ret['comment'] = $text;
|
||||
|
||||
$ret['moderate'] = $modcomment;
|
||||
$ret['comment_form'] = $comment;
|
||||
$ret['caption'] = "<span id='e-comment-total'>".$this->totalComments."</span> ".LAN_COMMENTS;
|
||||
|
||||
|
@@ -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>';
|
||||
|
||||
|
||||
|
@@ -1028,7 +1028,8 @@ class news_front
|
||||
|
||||
if(!empty($comments))
|
||||
{
|
||||
return e107::getRender()->tablerender($comments['caption'],$comments['comment_form'] . $comments['comment'],'comment', true);
|
||||
$text = $comments['comment_form'] . $comments['comment'] .$comments['moderate'];
|
||||
return e107::getRender()->tablerender($comments['caption'], $text,'comment', true);
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user