Skip to content

Commit

Permalink
Dev More updates to $redata arrays that feed templatereplace().
Browse files Browse the repository at this point in the history
Dev More testing needed to (a) ensure don't pass undefined variables, and (b) ensure all needed vars declared before $redata declaration (else not available to templatereplace())

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey_ci@11078 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
TMSWhite committed Oct 1, 2011
1 parent 600d49d commit 2a2fada
Show file tree
Hide file tree
Showing 8 changed files with 1,127 additions and 1,123 deletions.
62 changes: 31 additions & 31 deletions application/controllers/admin/question.php
Expand Up @@ -1308,37 +1308,37 @@ function noop_checkconditions(value, name, type)
};

$redata = array(
'answer' => &$answer,
'assessments' => &$assessments,
'captchapath' => &$captchapath,
'clienttoken' => &$clienttoken,
'completed' => &$completed,
'errormsg' => &$errormsg,
'groupdescription' => &$groupdescription,
'groupname' => &$groupname,
'help' => &$help,
'imageurl' => &$imageurl,
'languagechanger' => &$languagechanger,
'loadname' => &$loadname,
'move' => &$move,
'navigator' => &$navigator,
'percentcomplete' => &$percentcomplete,
'privacy' => &$privacy,
'question' => &$question,
'register_errormsg' => &$register_errormsg,
'relativeurl' => &$relativeurl,
's_lang' => &$s_lang,
'saved_id' => &$saved_id,
'showgroupinfo' => &$showgroupinfo,
'showqnumcode' => &$showqnumcode,
'showXquestions' => &$showXquestions,
'sitename' => &$sitename,
'surveylist' => &$surveylist,
'templatedir' => &$templatedir,
'thissurvey' => &$thissurvey,
'token' => &$token,
'totalBoilerplatequestions' => &$totalBoilerplatequestions,
'totalquestions' => &$totalquestions,
'answer' => $answer,
'assessments' => $assessments,
'captchapath' => $captchapath,
'clienttoken' => $clienttoken,
'completed' => $completed,
'errormsg' => $errormsg,
'groupdescription' => $groupdescription,
'groupname' => $groupname,
'help' => $help,
'imageurl' => $imageurl,
'languagechanger' => $languagechanger,
'loadname' => $loadname,
'move' => $move,
'navigator' => $navigator,
'percentcomplete' => $percentcomplete,
'privacy' => $privacy,
'question' => $question,
'register_errormsg' => $register_errormsg,
'relativeurl' => $relativeurl,
's_lang' => $s_lang,
'saved_id' => $saved_id,
'showgroupinfo' => $showgroupinfo,
'showqnumcode' => $showqnumcode,
'showXquestions' => $showXquestions,
'sitename' => $sitename,
'surveylist' => $surveylist,
'templatedir' => $templatedir,
'thissurvey' => $thissurvey,
'token' => $token,
'totalBoilerplatequestions' => $totalBoilerplatequestions,
'totalquestions' => $totalquestions,
);


Expand Down
3 changes: 2 additions & 1 deletion application/controllers/admin/tokens.php
Expand Up @@ -455,7 +455,8 @@ function adddummys($surveyid)
}

$santitizedtoken='';


$tokenoutput = '';
$tokenoutput .= "\t<div class='header ui-widget-header'>".$clang->gT("Add dummy tokens")."</div>\n"
."\t<div class='messagebox ui-corner-all'>\n";
$data = array('firstname' => $_POST['firstname'],
Expand Down

0 comments on commit 2a2fada

Please sign in to comment.