Skip to content

Commit

Permalink
Fixed issue #8656: OPTOUTURL from invitation email not working
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Feb 4, 2014
1 parent 95ef6d4 commit e2fd556
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions application/controllers/OptoutController.php
Expand Up @@ -48,10 +48,9 @@ function actiontokens()
}
else
{
$sLanguageCode = sanitize_languagecode($sLanguageCode);
$sBaseLanguage = sanitize_languagecode($sLanguageCode);
Yii::import('application.libraries.Limesurvey_lang', true);
$clang = new Limesurvey_lang($sLanguageCode);
$sBaseLanguage = $sLanguageCode;
$clang = new Limesurvey_lang($sBaseLanguage);
}

Yii::app()->lang = $clang;
Expand All @@ -63,7 +62,7 @@ function actiontokens()
}
else
{
$oToken = Token::model($iSurveyID)->findByAttributes($sToken);
$oToken = Token::model($iSurveyID)->findByAttributes(array('token'=>$sToken));

if (!isset($oToken))
{
Expand Down

0 comments on commit e2fd556

Please sign in to comment.