From b6c38cec9344ad4d11ac2fa122a16af1e4ebd134 Mon Sep 17 00:00:00 2001
From: moodler
Date: Mon, 23 Dec 2002 10:18:51 +0000
Subject: [PATCH] Slight fixes to headings
---
mod/survey/report.php | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/mod/survey/report.php b/mod/survey/report.php
index 1c4df5d301..38cbb42707 100644
--- a/mod/survey/report.php
+++ b/mod/survey/report.php
@@ -163,9 +163,10 @@
if ($question->type < 0) { // We have some virtual scales. DON'T show them.
continue;
}
+ $question->text = get_string($question->text, "survey");
if ($question->multi) {
- echo "$question->text :
";
+ echo "$question->text:
";
$subquestions = get_records_list("survey_questions", "id", $question->multi);
$subquestionorder = explode(",", $question->multi);
@@ -173,16 +174,14 @@
$subquestion = $subquestions[$val];
if ($subquestion->type > 0) {
echo "id\">
-
id&type=question.png\">
";
+
id&type=question.png\">
";
}
}
} else if ($question->type > 0 ) {
echo "id\">
-
id&type=question.png\">
";
+
id&type=question.png\">";
} else {
- echo "$question->text
";
+ echo "$question->text:
";
if ($aaa = survey_get_user_answers($survey->id, $question->id)) {
echo "";
foreach ($aaa as $a) {
@@ -200,6 +199,7 @@
if (!$question = get_record("survey_questions", "id", $qid)) {
error("Question doesn't exist");
}
+ $question->text = get_string($question->text, "survey");
$answers = explode(",", get_string($question->options, "survey"));
--
2.39.5