mirror of
https://github.com/ACSPRI/queXS
synced 2024-04-02 12:12:16 +00:00
Fix END URL for self completion
This commit is contained in:
@@ -467,22 +467,21 @@ else
|
|||||||
|
|
||||||
//queXS Addition
|
//queXS Addition
|
||||||
include_once("quexs.php");
|
include_once("quexs.php");
|
||||||
$quexs_url = get_start_interview_url();
|
|
||||||
$url = str_replace("{STARTINTERVIEWURL}", $quexs_url, $url);
|
|
||||||
|
|
||||||
|
|
||||||
$end_url = $url;
|
|
||||||
if ($interviewer)
|
if ($interviewer)
|
||||||
{
|
{
|
||||||
|
$quexs_url = get_start_interview_url();
|
||||||
|
$url = str_replace("{STARTINTERVIEWURL}", $quexs_url, $url);
|
||||||
|
|
||||||
$end_url = get_end_interview_url();
|
$end_url = get_end_interview_url();
|
||||||
|
$url = str_replace("{ENDINTERVIEWURL}", $end_url, $url);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$end_url = get_end_interview_url($clienttoken);
|
$url = get_end_interview_url($clienttoken);
|
||||||
quexs_completed_by_respondent($surveyid,$clienttoken);
|
quexs_completed_by_respondent($surveyid,$clienttoken);
|
||||||
}
|
}
|
||||||
|
|
||||||
$url = str_replace("{ENDINTERVIEWURL}", $end_url, $url);
|
|
||||||
|
|
||||||
header("Location: {$url}");
|
header("Location: {$url}");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user