Skip to content

Commit

Permalink
Dev: Rename qtitle to correct question_text (which actually is an arr…
Browse files Browse the repository at this point in the history
…ay...)
  • Loading branch information
olleharstedt committed Sep 5, 2016
1 parent 0ebfc8a commit f4a9cb6
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions application/helpers/qanda_helper.php
Expand Up @@ -311,7 +311,6 @@ function retrieveAnswers($ia)
// Values is an array as ($answer : string, $inputnames : array), where
// $answer is HTML and $inputnames is an array of question codes
$values = do_question_object($ia);
list($answer, $inputnames)=$values;
break;
default:
throw new Exception("Unknown question type: " . $ia[4]);
Expand Down Expand Up @@ -412,12 +411,10 @@ function retrieveAnswers($ia)
};
// END: legacy question_start.pstpl code
//===================================================================
$qtitle = $question_text;
// =====================================================

$qanda=array($qtitle, $answer, 'help', $display, $qid, $ia[2], $ia[5], $ia[1] );
//New Return
$qanda=array($question_text, $answer, 'help', $display, $qid, $ia[2], $ia[5], $ia[1] );

//New Return
/*
return array(
array(
Expand Down Expand Up @@ -446,7 +443,6 @@ function retrieveAnswers($ia)
)
);
*/
traceVar(array($qanda, $inputnames));

return array($qanda, $inputnames);
}
Expand Down

0 comments on commit f4a9cb6

Please sign in to comment.