From ccba355c0262c66814f89e668cd0ccc38ec12f40 Mon Sep 17 00:00:00 2001 From: LouisGac Date: Fri, 2 Jun 2017 14:12:49 +0200 Subject: [PATCH] Dev: render load screen --- application/controllers/admin/templates.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/application/controllers/admin/templates.php b/application/controllers/admin/templates.php index e8fe8586041..d4df9ed405d 100644 --- a/application/controllers/admin/templates.php +++ b/application/controllers/admin/templates.php @@ -1255,6 +1255,7 @@ protected function _initialise($templatename, $screenname, $editfile, $showsumma break; case 'load': + /* $files=$Load; $aData['aReplacements'] = $aGlobalReplacements; $myoutput[] = templatereplace(file_get_contents("$templatedir/startpage.pstpl"), array(),$aData['aReplacements'], 'Unspecified', false, NULL, array(), false, $oEditedTemplate); @@ -1269,6 +1270,8 @@ protected function _initialise($templatename, $screenname, $editfile, $showsumma $myoutput[] = templatereplace(file_get_contents("$templatedir/endpage.pstpl"), $aData['aReplacements'], $aData['aReplacements'], 'Unspecified', false, NULL, array(), false, $oEditedTemplate); $myoutput[] = "\n"; + */ + $myoutput = Yii::app()->twigRenderer->renderTemplateFromFile("layout_load.twig", array('aSurveyInfo'=>$thissurvey), true); break; case 'clearall':