Skip to content

Commit

Permalink
Dev: added twig renderer before LS replacement.
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Dec 16, 2016
1 parent 2569f0a commit f1329f5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions application/helpers/replacements_helper.php
Expand Up @@ -31,6 +31,8 @@
*/
function templatereplace($line, $replacements = array(), &$redata = array(), $debugSrc = 'Unspecified', $anonymized = false, $questionNum = NULL, $registerdata = array(), $bStaticReplacement = false, $oTemplate='')
{
$line = Yii::app()->twigRenderer->renderTemplateFromString( $line, $redata, false);

$allowedvars = array(
'assessments',
'captchapath',
Expand Down

0 comments on commit f1329f5

Please sign in to comment.