From: moodler
Date: Mon, 23 Dec 2002 10:18:51 +0000 (+0000)
Subject: Slight fixes to headings
X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=b6c38cec9344ad4d11ac2fa122a16af1e4ebd134;p=moodle.git
Slight fixes to headings
---
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"));