Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Nov 30, 2012
2 parents ea5b4cf + 92d8c27 commit 6d89157
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions application/helpers/replacements_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,9 @@ function templatereplace($line, $replacements = array(), &$redata = array(), $de
}
if(!isset($templatedir)) $templatedir = getTemplatePath($templatename);
if(!isset($templateurl)) $templateurl = getTemplateURL($templatename)."/";

if (!$anonymized && isset($thissurvey['anonymized'])) {
$anonymized=($thissurvey['anonymized']=="Y");
}
// TEMPLATECSS and TEMPLATEJS
$_templatecss="";$_templatejs="";
if(stripos ($line,"{TEMPLATECSS}"))
Expand Down Expand Up @@ -859,7 +861,7 @@ function templatereplace($line, $replacements = array(), &$redata = array(), $de
$coreReplacements['TEMPLATEJS'] = $_templatejs;
$coreReplacements['TEMPLATEURL'] = $templateurl;
$coreReplacements['THEREAREXQUESTIONS'] = $_therearexquestions;
if (!$anonymized) $coreReplacements['TOKEN'] = $_token;
$coreReplacements['TOKEN'] = (!$anonymized ? $_token : '');// Silently replace TOKEN by empty string
$coreReplacements['URL'] = $_linkreplace;
$coreReplacements['WELCOME'] = (isset($thissurvey['welcome']) ? $thissurvey['welcome'] : '');

Expand Down

0 comments on commit 6d89157

Please sign in to comment.