diff --git a/application/controllers/PrintanswersController.php b/application/controllers/PrintanswersController.php index 4e16781a8e5..c5e34371c73 100644 --- a/application/controllers/PrintanswersController.php +++ b/application/controllers/PrintanswersController.php @@ -66,7 +66,6 @@ function actionView($surveyid,$printableexport=FALSE) $surveyid=0; $language = Yii::app()->getConfig("defaultlang"); } - die($surveyid); $clang = SetSurveyLanguage($surveyid, $language); $thissurvey = getSurveyInfo($surveyid,$language); //SET THE TEMPLATE DIRECTORY diff --git a/application/helpers/replacements_helper.php b/application/helpers/replacements_helper.php index bb0cd7f882d..472351513e7 100644 --- a/application/helpers/replacements_helper.php +++ b/application/helpers/replacements_helper.php @@ -95,6 +95,7 @@ function templatereplace($line, $replacements = array(), &$redata = array(), $de if (!isset($showxquestions)) { $showxquestions = Yii::app()->getConfig('showxquestions'); } if (!isset($s_lang)) { $s_lang = (isset(Yii::app()->session['survey_'.$_surveyid]['s_lang']) ? Yii::app()->session['survey_'.$_surveyid]['s_lang'] : 'en'); } if (!isset($captchapath)) { $captchapath = ''; } + if (!isset($sitename)) { $sitename=Yii::app()->getConfig('sitename'); } $clang = Yii::app()->lang;