Skip to content

Commit

Permalink
Dev: added 'answer' to twig variables
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Jan 16, 2017
1 parent 09c7372 commit 2a5c8b5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions application/helpers/SurveyRuntimeHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,7 @@ public function run($surveyid,$args)
$thissurvey['aQuestion']['valid_message'] = $qa[0]['valid_message'];
$thissurvey['aQuestion']['file_valid_message'] = $qa[0]['file_valid_message'];
$thissurvey['aQuestion']['man_message'] = $qa[0]['man_message'];
$thissurvey['aQuestion']['answer'] = $qa[1];

$question_template = file_get_contents($sTemplateViewPath.'question.twig');
// Fix old template : can we remove it ? Old template are surely already broken by another issue
Expand Down

0 comments on commit 2a5c8b5

Please sign in to comment.