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':