Skip to content

Commit

Permalink
Fixed issue #6637: default template settings aren't used with endpage…
Browse files Browse the repository at this point in the history
….pstpl for surveylist

Dev : other_replace_text aren't used for other_comment_mandatory, need more works for i18n
  • Loading branch information
Shnoulle committed Oct 4, 2012
1 parent f9693c9 commit a6d40f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion application/controllers/survey/index.php
Expand Up @@ -305,7 +305,7 @@ function sendreq(surveyid)
}
</script>';

$this->_printTemplateContent(Yii::app()->getConfig("standardtemplaterootdir").DIRECTORY_SEPARATOR.'default'.DIRECTORY_SEPARATOR.'endpage.pstpl', $redata, __LINE__);
$this->_printTemplateContent(getTemplatePath(Yii::app()->getConfig("defaulttemplate"))."/endpage.pstpl", $data, __LINE__);
doFooter();
exit;
}
Expand Down
4 changes: 2 additions & 2 deletions application/helpers/expressions/em_manager_helper.php
Expand Up @@ -2579,8 +2579,8 @@ public function _CreateSubQLevelRelevanceAndValidationEqns($onlyThisQseq=NULL)
// other comment mandatory
if ($other_comment_mandatory!='')
{
if (isset($_qattr['other_replace_text']) && flattenText($_qattr['other_replace_text']) != '') {
$othertext = flattenText($_qattr['other_replace_text']);
if (isset($qattr['other_replace_text']) && trim($qattr['other_replace_text']) != '') {
$othertext = trim($qattr['other_replace_text']);
}
else {
$othertext = $this->gT('other');
Expand Down

0 comments on commit a6d40f4

Please sign in to comment.