diff --git a/include/limesurvey/admin/activate.php b/include/limesurvey/admin/activate.php
index 69cd2550..85c87ed8 100644
--- a/include/limesurvey/admin/activate.php
+++ b/include/limesurvey/admin/activate.php
@@ -80,5 +80,11 @@ if (!isset($_POST['ok']) || !$_POST['ok'])
else
{
$activateoutput = activateSurvey($postsid,$surveyid);
+ //also activate tokens queXS addition
+ if(bHasSurveyPermission($surveyid,'tokens','read'))
+ {
+ $_POST['createtable'] = 'Y';
+ $_SESSION['FileManagerContext']="edit:emailsettings:$surveyid";
+ include('tokens.php');
+ }
}
-
diff --git a/include/limesurvey/admin/activate_functions.php b/include/limesurvey/admin/activate_functions.php
index e5b5d235..1038dea4 100644
--- a/include/limesurvey/admin/activate_functions.php
+++ b/include/limesurvey/admin/activate_functions.php
@@ -473,9 +473,10 @@ function activateSurvey($postsid,$surveyid, $scriptname='admin.php')
else
{
$activateoutput .= $clang->gT("This survey is now active, and responses can be recorded.")."
\n";
- $activateoutput .= "".$clang->gT("Open-access mode").": ".$clang->gT("No invitation code is needed to complete the survey.")."
".$clang->gT("You can switch to the closed-access mode by initialising a token table with the button below.")."
\n";
- $activateoutput .= "\n";
- $activateoutput .= "\n";
+//queXS removal
+// $activateoutput .= "".$clang->gT("Open-access mode").": ".$clang->gT("No invitation code is needed to complete the survey.")."
".$clang->gT("You can switch to the closed-access mode by initialising a token table with the button below.")."
\n";
+ // $activateoutput .= "\n";
+ // $activateoutput .= "\n";
}
$activateoutput .= "
\n";
$lsrcOutput = true;
diff --git a/include/limesurvey/admin/tokens.php b/include/limesurvey/admin/tokens.php
index 5c45841e..a1c0ad07 100644
--- a/include/limesurvey/admin/tokens.php
+++ b/include/limesurvey/admin/tokens.php
@@ -494,7 +494,7 @@ if (!$tokenexists) //If no tokens table exists
$tokenoutput .= "\t
\n"
.$clang->gT("A token table has been created for this survey.")." (\"".$dbprefix."tokens_$surveyid\")
\n"
."\n";
+ .$clang->gT("Continue")."' onclick=\"window.open('$scriptname?sid=$surveyid', '_self')\" />\n";
}
return;
}
@@ -3286,4 +3286,4 @@ function getLine($file)
return $buffer;
}
-?>
\ No newline at end of file
+?>