Skip to content

Commit

Permalink
Dev Added {ACTIVE} variable which is true if the survey is active. Th…
Browse files Browse the repository at this point in the history
…is is helpful for templates that are conditional upon whether the survey is active.
  • Loading branch information
TMSWhite committed Jul 25, 2012
1 parent e72003b commit 384bb17
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions application/helpers/replacements_helper.php
Expand Up @@ -775,6 +775,7 @@ function templatereplace($line, $replacements = array(), &$redata = array(), $de
// Set the array of replacement variables here - don't include curly braces

$coreReplacements = array();
$coreReplacements['ACTIVE'] = (isset($thissurvey['active']) && !($thissurvey['active'] != "Y"));
$coreReplacements['AID'] = isset($questiondetails['aid']) ? $questiondetails['aid'] : '';
$coreReplacements['ANSWER'] = isset($answer) ? $answer : ''; // global
$coreReplacements['ANSWERSCLEARED'] = $clang->gT("Answers Cleared");
Expand Down

0 comments on commit 384bb17

Please sign in to comment.