Skip to content

Commit

Permalink
Fixed issue #6293: {SURVEYURL} incorrect in invitations/reminders
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Jul 6, 2012
1 parent 3080694 commit 71dbcdd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions application/controllers/admin/tokens.php
Expand Up @@ -1195,9 +1195,9 @@ function email($iSurveyId, $aTokenIds = null)

$from = Yii::app()->request->getPost('from_' . $emrow['language']);

$fieldsarray["{OPTOUTURL}"] = $this->getController()->createUrl("/optout/langcode/" . trim($emrow['language']) . "/surveyid/{$iSurveyId}/token/{$emrow['token']}");
$fieldsarray["{OPTINURL}"] = $this->getController()->createUrl("/optin/langcode/" . trim($emrow['language']) . "/surveyid/{$iSurveyId}/token/{$emrow['token']}");
$fieldsarray["{SURVEYURL}"] = $this->getController()->createUrl("/survey/langcode/" . trim($emrow['language']) . "/surveyid/{$iSurveyId}/token/{$emrow['token']}");
$fieldsarray["{OPTOUTURL}"] = $this->getController()->createAbsoluteUrl("/optout/langcode/" . trim($emrow['language']) . "/surveyid/{$iSurveyId}/token/{$emrow['token']}");
$fieldsarray["{OPTINURL}"] = $this->getController()->createAbsoluteUrl("/optin/langcode/" . trim($emrow['language']) . "/surveyid/{$iSurveyId}/token/{$emrow['token']}");
$fieldsarray["{SURVEYURL}"] = $this->getController()->createAbsoluteUrl("/survey/langcode/" . trim($emrow['language']) . "/surveyid/{$iSurveyId}/token/{$emrow['token']}");

foreach(array('OPTOUT', 'OPTIN', 'SURVEY') as $key)
{
Expand Down

0 comments on commit 71dbcdd

Please sign in to comment.