From add180186f9e51ca9db698497a83a63125cbc3ea Mon Sep 17 00:00:00 2001 From: Denis Chenu Date: Fri, 16 Oct 2020 18:28:34 +0200 Subject: [PATCH] Fixed issue #16745: Title for ranking question gets codes instead of quotes Dev: html --- application/core/QuestionTypes/RankingStyle/RenderRanking.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/core/QuestionTypes/RankingStyle/RenderRanking.php b/application/core/QuestionTypes/RankingStyle/RenderRanking.php index 70696f9ad92..85eb2507fdf 100644 --- a/application/core/QuestionTypes/RankingStyle/RenderRanking.php +++ b/application/core/QuestionTypes/RankingStyle/RenderRanking.php @@ -131,13 +131,13 @@ public function render($sCoreClasses = '') if (trim($this->getQuestionAttribute('choice_title', App()->language)) != '') { $choice_title = htmlspecialchars(trim($this->getQuestionAttribute('choice_title', App()->language)), ENT_QUOTES); } else { - $choice_title = gT("Your Choices", 'js'); + $choice_title = gT("Your Choices", 'html'); } if (trim($this->getQuestionAttribute('rank_title', App()->language)) != '') { $rank_title = htmlspecialchars(trim($this->getQuestionAttribute('rank_title', App()->language)), ENT_QUOTES); } else { - $rank_title = gT("Your Ranking", 'js'); + $rank_title = gT("Your Ranking", 'html'); } $answer .= Yii::app()->twigRenderer->renderQuestion($this->getMainView().'/answer', array(