Minor - Update question function

pull/2821/head
Julio Montoya 7 years ago
parent 334ea796cb
commit 77c326ea6e
  1. 2
      plugin/test2pdf/src/download-pdf.php
  2. 2
      plugin/test2pdf/src/test2pdf.lib.php

@ -36,7 +36,7 @@ if (!empty($infoQuiz['description'])) {
}
// Select all questions of the supported types from the given course
$questionsList = getQuestions($courseId, $quizId, $sessionId);
$questionsList = getQuestionsFromCourse($courseId, $quizId, $sessionId);
// Go through all questions and get the answers
if ($_GET['type'] == 'question' || $_GET['type'] == 'all') {

@ -93,7 +93,7 @@ function getInfoQuiz($courseId, $id)
*
* @return array Results (list question ID)
*/
function getQuestions($courseId, $quizId, $sessionId = 0)
function getQuestionsFromCourse($courseId, $quizId, $sessionId = 0)
{
$courseId = (int) $courseId;
$quizId = (int) $quizId;

Loading…
Cancel
Save