diff --git a/application/controllers/admin/templates.php b/application/controllers/admin/templates.php index f0c77538005..bfb9d05845a 100644 --- a/application/controllers/admin/templates.php +++ b/application/controllers/admin/templates.php @@ -1459,6 +1459,10 @@ protected function _initialise($templatename, $screenname, $editfile, $showsumma case 'error': $thissurvey['aError']['title'] = gT("Error"); $thissurvey['aError']['message'] = gT("This is an error message example"); + + $aSurveyListConfig = (array) $oEditedTemplate->templateEditor->screens->error; + $files = $aSurveyListConfig['file']; + $myoutput = Yii::app()->twigRenderer->renderTemplateFromFile("layout_errors.twig", array('aSurveyInfo'=>$thissurvey), true); break; }