Skip to content

Commit

Permalink
Fixed issue #16745: Title for ranking question gets codes instead of …
Browse files Browse the repository at this point in the history
…quotes

Dev: html
  • Loading branch information
Shnoulle committed Oct 16, 2020
1 parent a5b0ffe commit add1801
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/core/QuestionTypes/RankingStyle/RenderRanking.php
Expand Up @@ -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(
Expand Down

0 comments on commit add1801

Please sign in to comment.