Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into rand
Browse files Browse the repository at this point in the history
Conflicts:
	application/helpers/frontend_helper.php
  • Loading branch information
olleharstedt committed Sep 1, 2016
2 parents 503c976 + 1802837 commit 9d27351
Show file tree
Hide file tree
Showing 29 changed files with 278 additions and 280 deletions.
2 changes: 2 additions & 0 deletions application/helpers/common_helper.php
Expand Up @@ -1810,13 +1810,15 @@ function createFieldMap($surveyid, $style='short', $force_refresh=false, $questi
$fieldmap["startlanguage"]['group_name']="";
}

/*
$fieldmap['seed'] = array('fieldname' => 'seed', 'sid' => $surveyid, 'type' => 'seed', 'gid' => '', 'qid' => '', 'aid' => '');
if ($style == 'full')
{
$fieldmap["seed"]['title']="";
$fieldmap["seed"]['question']=gT("Seed");
$fieldmap["seed"]['group_name']="";
}
*/

//Check for any additional fields for this survey and create necessary fields (token and datestamp and ipaddr)
$prow = Survey::model()->findByPk($surveyid)->getAttributes(); //Checked
Expand Down
2 changes: 0 additions & 2 deletions application/helpers/frontend_helper.php
Expand Up @@ -1063,8 +1063,6 @@ function buildsurveysession($surveyid,$preview=false)
$qtypes=getQuestionTypeList('','array');
$fieldmap=createFieldMap($surveyid,'full',true,false,$_SESSION['survey_'.$surveyid]['s_lang']);

//$fieldmap = randomizationGroupsAndQuestions($surveyid, $preview, $fieldmap);

$_SESSION['survey_'.$surveyid]['fieldmap'] = $fieldmap;

initFieldArray($surveyid, $fieldmap);
Expand Down
2 changes: 1 addition & 1 deletion application/helpers/replacements_helper.php
Expand Up @@ -688,7 +688,7 @@ function templatereplace($line, $replacements = array(), &$redata = array(), $de
$coreReplacements['ASSESSMENTS'] = $assessmenthtml;
$coreReplacements['ASSESSMENT_CURRENT_TOTAL'] = $_assessment_current_total;
$coreReplacements['ASSESSMENT_HEADING'] = gT("Your assessment");
$coreReplacements['CHECKJAVASCRIPT'] = "<noscript><span class='warningjs'>".gT("Caution: JavaScript execution is disabled in your browser. You may not be able to answer all questions in this survey. Please, verify your browser parameters.")."</span></noscript>";
$coreReplacements['CHECKJAVASCRIPT'] = "<p class='alert alert-danger warningjs'>".gT("Caution: JavaScript execution is disabled in your browser. You may not be able to answer all questions in this survey. Please, verify your browser parameters.")."</p>";
$coreReplacements['CLEARALL'] = $_clearall;
$coreReplacements['CLEARALL_LINKS'] = $_clearalllinks;
$coreReplacements['CLOSEWINDOW'] = ''; // Obsolete tag - keep this line for compatibility reaons
Expand Down
6 changes: 3 additions & 3 deletions application/views/admin/update/updater/_error.php
Expand Up @@ -42,13 +42,13 @@

case 'out_of_updates':
$title = gT("Your update key has exceeded the maximum number updates!");
$message = gT("You should first renew this key before using it or try to enter a new one!");
$message = gT("Please buy a new one!");
$buttons = 1;
break;

case 'expired':
$title = gT("Your update key has expired!");
$message = gT("You should first renew this key before using it or try to enter a new one!");
$message = gT("Please buy a new one!");
$buttons = 1;
break;

Expand Down Expand Up @@ -146,7 +146,7 @@

<?php if( $buttons == 1 ): ?>
<a class="btn btn-default" href="https://www.limesurvey.org/en/" role="button" aria-disabled="false" target="_blank">
<?php eT("Renew this key"); ?>
<?php eT("Buy a new key"); ?>
</a>

<a class="btn btn-default" href="<?php echo $urlNew;?>" role="button" aria-disabled="false">
Expand Down
2 changes: 1 addition & 1 deletion application/views/admin/update/updater/welcome/_error.php
Expand Up @@ -71,7 +71,7 @@

<?php if( $buttons == 1 ): ?>
<a class="btn btn-default" href="https://www.limesurvey.org/en/" role="button" aria-disabled="false" target="_blank">
<?php eT("Renew this key"); ?>
<?php eT("Buy a new key"); ?>
</a>

<a class="btn btn-default" href="<?php echo $urlNew;?>" role="button" aria-disabled="false">
Expand Down
4 changes: 2 additions & 2 deletions application/views/admin/update/updater/welcome/_welcome.php
Expand Up @@ -48,7 +48,7 @@
<?php endif;?>

<strong><?php eT('Your update key:');?> <?php echo $serverAnswer->key_infos->keyid; ?></strong><br/>
<strong><?php eT('Valid until:');?> <?php echo $sValidityDate; ?></strong><br/>
<strong><?php eT('Valid until:');?> <?php echo $sValidityDate; ?></strong><br/>
<?php if ($serverAnswer->key_infos->remaining_updates!=-999) { ?>
<strong><?php eT('Remaining updates:');?> <?php echo $serverAnswer->key_infos->remaining_updates;?></strong><br/>
<?php } ?>
Expand All @@ -57,7 +57,7 @@
<br/>
<?php if ($serverAnswer->key_infos->remaining_updates!=-999):?>
<a class="btn btn-default" href="https://www.limesurvey.org/en/" role="button" aria-disabled="false" target="_blank">
<?php eT("Renew this key"); ?>
<?php eT("Buy a new key"); ?>
</a>
<?php endif; ?>

Expand Down

0 comments on commit 9d27351

Please sign in to comment.