2
0
mirror of https://github.com/ACSPRI/queXS synced 2024-04-02 12:12:16 +00:00

Automatically create tokens table when activating (as is required by queXS)

This commit is contained in:
azammitdcarf
2012-05-01 00:39:11 +00:00
parent 7af9984693
commit 04bbeb6c0b
3 changed files with 13 additions and 6 deletions

View File

@@ -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');
}
}