Skip to content

Commit

Permalink
New Feature: Added ADMINNAME and ADMINEMAIL as replacement field for …
Browse files Browse the repository at this point in the history
…survey texts
  • Loading branch information
gabrieljenik committed Nov 30, 2015
1 parent f9f5b19 commit 63012db
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions application/helpers/replacements_helper.php
Expand Up @@ -535,6 +535,8 @@ function templatereplace($line, $replacements = array(), &$redata = array(), $de
$coreReplacements['DATESTAMP'] = $_datestamp;
$coreReplacements['ENDTEXT'] = $_endtext;
$coreReplacements['EXPIRY'] = $_dateoutput;
$coreReplacements['ADMINNAME'] = $thissurvey['admin'];
$coreReplacements['ADMINEMAIL'] = $thissurvey['adminemail'];
$coreReplacements['GID'] = Yii::app()->getConfig('gid','');// Use the gid of the question, except if we are not in question (Randomization group name)
$coreReplacements['GOOGLE_ANALYTICS_API_KEY'] = $_googleAnalyticsAPIKey;
$coreReplacements['GOOGLE_ANALYTICS_JAVASCRIPT'] = $_googleAnalyticsJavaScript;
Expand Down

0 comments on commit 63012db

Please sign in to comment.