Permalink
Browse files

Dev: Update feature: Allow user to enter to the survey after register…

…ing with good link

Dev: 99e3ceb and dc37964 child
  • Loading branch information...
1 parent dc37964 commit 1c512f36205692c43971c9fd12a03fb4c5a8647c @Shnoulle Shnoulle committed Jan 19, 2013
Showing with 2 additions and 4 deletions.
  1. +2 −4 application/controllers/RegisterController.php
@@ -218,14 +218,12 @@ function actionIndex($surveyid = null)
if($thissurvey['directregister']=="Y")
{
- $registerurl=Yii::app()->getController()->createUrl("/{$surveyid}/lang-{$sLanguage}/tk-{$sNewToken}");
- $sHTML .= sprintf($clang->gT("An email has been sent to the address you provided with access details for this survey. <a href='%s'>You can enter to this survey now</a>.",'unescaped'),$registerurl);
+ $sHTML .= sprintf($clang->gT("An email has been sent to the address you provided with access details for this survey. <a href='%s'>You can enter to this survey now</a>.",'unescaped'),$surveylink);
$sHTML .= "<br /><br />\n".$clang->gT("Survey administrator")." {ADMINNAME} ({ADMINEMAIL})";
}
elseif($thissurvey['directregister']=="A")
{
- $registerurl=Yii::app()->getController()->createUrl("/{$surveyid}/lang-{$sLanguage}/tk-{$sNewToken}");
- Yii::app()->request->redirect($registerurl);
+ Yii::app()->request->redirect($surveylink);
}
else
{

0 comments on commit 1c512f3

Please sign in to comment.