From 2e3e980f1366375053902f32f5d9a9a1bbc575a8 Mon Sep 17 00:00:00 2001 From: Cameron Date: Tue, 13 Dec 2016 11:22:07 -0800 Subject: [PATCH] Fix for news-comment moderate button. Use https for generated YouTube thumbnails. --- e107_handlers/comment_class.php | 2 +- e107_handlers/e_parse_class.php | 2 +- e107_plugins/news/news.php | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/e107_handlers/comment_class.php b/e107_handlers/comment_class.php index 99f8f0155..eda234c07 100644 --- a/e107_handlers/comment_class.php +++ b/e107_handlers/comment_class.php @@ -1177,7 +1177,7 @@ class comment $ret['comment'] = $text; - + $ret['moderate'] = $modcomment; $ret['comment_form'] = $comment; $ret['caption'] = "".$this->totalComments." ".LAN_COMMENTS; diff --git a/e107_handlers/e_parse_class.php b/e107_handlers/e_parse_class.php index 91fe86888..efefb2ac1 100644 --- a/e107_handlers/e_parse_class.php +++ b/e107_handlers/e_parse_class.php @@ -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 = ''; diff --git a/e107_plugins/news/news.php b/e107_plugins/news/news.php index 0db0cce18..1d44f6266 100644 --- a/e107_plugins/news/news.php +++ b/e107_plugins/news/news.php @@ -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); } }