Skip to content

Commit

Permalink
Dev: Reload theme config on printable survey view
Browse files Browse the repository at this point in the history
  • Loading branch information
lacrioque committed Sep 20, 2019
1 parent dd0eecd commit 9be98b2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions application/controllers/admin/printablesurvey.php
Original file line number Diff line number Diff line change
Expand Up @@ -1306,6 +1306,7 @@ function index($surveyid, $lang = null, $bReturn = false)
// Previous version of PHP needs two regular expressions to do the same thing and thus will run a bit slower.
$server_is_newer = version_compare(PHP_VERSION, '5.1.0', '>');
$rounds = 0;
Template::getInstance($oSurvey->template);
return Yii::app()->twigRenderer->renderTemplateFromFile('layout_print.twig', ['aSurveyInfo' => $aSurveyInfo, 'print' => $printarray], $bReturn);
// die(print_r(['aSurveyInfo' => $aSurveyInfo, 'print' => $printarray], true));
// echo self::_populate_template($oTemplate, 'survey', ['aSurveyInfo' => $aSurveyInfo, 'print' => $printarray]);
Expand Down

0 comments on commit 9be98b2

Please sign in to comment.