Skip to content

Commit

Permalink
Fixed issue #17054: Public stats don't use the theme set at survey, b…
Browse files Browse the repository at this point in the history
…ut at global settings (#1747)

* Fixed issue #17054: Public stats don't use the theme set at survey, but at global settings

Use survey template

* Fixed issue #17054: Public stats don't use the theme set at survey, but at global settings

Use survey template
  • Loading branch information
gabrieljenik committed Feb 9, 2021
1 parent 71b41cb commit 6fb22df
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions application/controllers/Statistics_userController.php
Expand Up @@ -301,6 +301,8 @@ public function actionAction($surveyid, $language = null)
//$this->layout = "public";
//$this->render('/statistics_user_view', $data);
$data['aSurveyInfo']['include_content'] = 'statistics_user';
// Set template into last instance. Will be picked up later by the renderer
$oTemplate = Template::model()->getInstance('', $iSurveyID);
Yii::app()->twigRenderer->renderTemplateFromFile('layout_statistics_user.twig', $data, false);

//Delete all Session Data
Expand Down

0 comments on commit 6fb22df

Please sign in to comment.