Skip to content

Commit

Permalink
Fixed issue #6947 : {QID} does not work consistently in different que…
Browse files Browse the repository at this point in the history
…stion types

Dev: children http://bugs.limesurvey.org/view.php?id=6954 exist in 1.92
Dev: Don't know what AID is used: Not replaced in 2.1 (replaced by empty string when testing)
Dev: No change required for 21, just push for Commit History
  • Loading branch information
Shnoulle committed Nov 27, 2012
1 parent dba3ecc commit 1e44e27
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions application/helpers/replacements_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,12 @@ function templatereplace($line, $replacements = array(), &$redata = array(), $de
if (!isset($showxquestions)) { $showxquestions = Yii::app()->getConfig('showxquestions'); }
if (!isset($s_lang)) { $s_lang = (isset(Yii::app()->session['survey_'.$_surveyid]['s_lang']) ? Yii::app()->session['survey_'.$_surveyid]['s_lang'] : 'en'); }
if (!isset($captchapath)) { $captchapath = ''; }
if (!isset($sitename)) { $sitename=Yii::app()->getConfig('sitename'); }

$clang = Yii::app()->lang;

Yii::app()->loadHelper('surveytranslator');

$questiondetails = false;
if(isset($question) && isset($question['sgq'])) $questiondetails=getQuestion($question['sgq']); //Gets an array containing SID, GID, QID, AID and Question Type)

Expand Down

0 comments on commit 1e44e27

Please sign in to comment.