Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Jun 2, 2017
2 parents ccb8c0e + 1a5634b commit feaec1d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion application/controllers/RegisterController.php
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ private function display($iSurveyId)
$oTemplate = Template::model()->getInstance('', $iSurveyId);
Yii::app()->clientScript->registerPackage( 'survey-template' );

$this->sTemplate=$oTemplate->name;
$this->sTemplate=$oTemplate->sTemplateName;
if(!$this->sMessage){
$this->aGlobalData['languagechanger']=makeLanguageChangerSurvey($sLanguage); // Only show language changer shown the form is shown, not after submission
$this->aReplacementData['content']=self::getRegisterForm($iSurveyId);
Expand Down
7 changes: 3 additions & 4 deletions application/controllers/SurveysController.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function actionPublicList($lang = null)
//$oTemplate->registerAssets();


$this->sTemplate = $oTemplate->name;
$this->sTemplate = $oTemplate->sTemplateName;
//Yii::app()->clientScript->registerPackage( 'survey-template' );
//Yii::app()->clientScript->registerPackage( 'survey-template-'.$oTemplate->sTemplateName );
//var_dump('survey-template-'.$oTemplate->sTemplateName);
Expand Down Expand Up @@ -70,7 +70,7 @@ public function actionError()
{
$oTemplate = Template::model()->getInstance(Yii::app()->getConfig("defaulttemplate"));

$this->sTemplate = $oTemplate->name;
$this->sTemplate = $oTemplate->sTemplateName;

$error = Yii::app()->errorHandler->error;
if ($error){
Expand All @@ -81,5 +81,4 @@ public function actionError()
}
}

}
?>
}

0 comments on commit feaec1d

Please sign in to comment.