Skip to content

Commit

Permalink
Fixed issue #6736: Survey resume link does not contain language infor…
Browse files Browse the repository at this point in the history
…mation
  • Loading branch information
c-schmitz committed Oct 22, 2012
1 parent 4656478 commit f223430
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion application/helpers/frontend_helper.php
Expand Up @@ -1180,7 +1180,7 @@ function sendSubmitNotifications($surveyid)

if ($thissurvey['allowsave'] == "Y" && isset($_SESSION['survey_'.$surveyid]['scid']))
{
$aReplacementVars['RELOADURL']="".Yii::app()->getController()->createUrl("/survey/index/sid/{$surveyid}/loadall/reload/scid/".$_SESSION['survey_'.$surveyid]['scid']."/loadname/".urlencode($_SESSION['survey_'.$surveyid]['holdname'])."/loadpass/".urlencode($_SESSION['survey_'.$surveyid]['holdpass']));
$aReplacementVars['RELOADURL']="".Yii::app()->getController()->createUrl("/survey/index/sid/{$surveyid}/loadall/reload/scid/".$_SESSION['survey_'.$surveyid]['scid']."/loadname/".urlencode($_SESSION['survey_'.$surveyid]['holdname'])."/loadpass/".urlencode($_SESSION['survey_'.$surveyid]['holdpass'])."/lang/".urlencode($clang->langcode));
if ($bIsHTML)
{
$aReplacementVars['RELOADURL']="<a href='{$aReplacementVars['RELOADURL']}'>{$aReplacementVars['RELOADURL']}</a>";
Expand Down
2 changes: 1 addition & 1 deletion application/libraries/Save.php
Expand Up @@ -198,7 +198,7 @@ function savedcontrol()
$message .= $clang->gT("Name").": ".$_POST['savename']."\n";
$message .= $clang->gT("Password").": ".$_POST['savepass']."\n\n";
$message .= $clang->gT("Reload your survey by clicking on the following link (or pasting it into your browser):")."\n";
$message .= Yii::app()->getController()->createAbsoluteUrl("/survey/index/sid/{$surveyid}/loadall/reload/scid/{$scid}/loadname/".urlencode($_POST['savename'])."/loadpass/".urlencode($_POST['savepass']));
$message .= Yii::app()->getController()->createAbsoluteUrl("/survey/index/sid/{$surveyid}/loadall/reload/scid/{$scid}/loadname/".urlencode($_POST['savename'])."/loadpass/".urlencode($_POST['savepass'])."/lang/".urlencode($clang->langcode));
if ($clienttoken) $message .= "/token/{$clienttoken}";

$from="{$thissurvey['adminname']} <{$thissurvey['adminemail']}>";
Expand Down

0 comments on commit f223430

Please sign in to comment.