Skip to content

Commit

Permalink
Fixed issue #17381: Missing evaluation of EM in CSS script field (#1945)
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrieljenik committed Jul 14, 2021
1 parent 69c42fd commit 0f088d5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions application/views/questionAdministration/summary.php
Expand Up @@ -216,8 +216,12 @@
</td>
<td>
<?php
if (isset($setting['expression']) && $setting['expression'] == 2) {
LimeExpressionManager::ProcessString('{' . $setting['value'] . '}', $question->qid);
if (isset($setting['expression']) && $setting['expression'] > 0) {
if ($setting['expression'] == 1) {
LimeExpressionManager::ProcessString($setting['value'], $question->qid);
} else {
LimeExpressionManager::ProcessString('{' . $setting['value'] . '}', $question->qid);
}
echo LimeExpressionManager::GetLastPrettyPrintExpression();
} else {
if (($setting['i18n'] ==null) || ($setting['i18n'] == false)) {
Expand Down

0 comments on commit 0f088d5

Please sign in to comment.