From 6fb22dfc5ad32feab5dc8a64c1313af9515345c8 Mon Sep 17 00:00:00 2001 From: Gabriel Jenik Date: Tue, 9 Feb 2021 12:36:47 -0300 Subject: [PATCH] Fixed issue #17054: Public stats don't use the theme set at survey, but 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 --- application/controllers/Statistics_userController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/application/controllers/Statistics_userController.php b/application/controllers/Statistics_userController.php index 5ee35ce6368..33489b2981e 100644 --- a/application/controllers/Statistics_userController.php +++ b/application/controllers/Statistics_userController.php @@ -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