1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
<?php
// NB: Code-snippet copied from LimeSurvey import_helper.php
$iOldQID = (int) $insertdata['qid'];
unset($insertdata['qid']);
$insertdata['parent_qid'] = $aQIDReplacements[(int) $insertdata['parent_qid']];
if (!isset($insertdata['help'])) {
$insertdata['help'] = '';
}
if (!isset($xml->question_l10ns->rows->row)) {
// Edit difference here.
if ($bTranslateLinksFields) {
$insertdata['question'] = translateLinks('survey', $iOldSID, $iNewSID, $insertdata['question']);
$insertdata['help'] = translateLinks('survey', $iOldSID, $iNewSID, $insertdata['help']);
}
$oQuestionL10n = new QuestionL10n();
$oQuestionL10n->question = $insertdata['question'];
$oQuestionL10n->help = $insertdata['help'];
$oQuestionL10n->language = $insertdata['language'];
unset($insertdata['question']);
unset($insertdata['help']);
unset($insertdata['language']);
}
// For some reason, two exact files will lead to one 0-line clone.
$a = 10;
|