Update of /cvsroot/aimmath/moodle/mod/aim_quiz
In directory sc8-pr-cvs1:/tmp/cvs-serv19295
Modified Files:
aimpage.php deleteserver.php depends.php editgrade.php
index.php lib.php servers.php subjects.php version.php
view.php
Log Message:
minor fixes supplied by Alex
Index: aimpage.php
===================================================================
RCS file: /cvsroot/aimmath/moodle/mod/aim_quiz/aimpage.php,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** aimpage.php 25 Aug 2003 16:24:04 -0000 1.1.1.1
--- aimpage.php 27 Aug 2003 14:21:24 -0000 1.2
***************
*** 118,121 ****
--- 118,123 ----
$navigation = "<A HREF=\"../../course/view.php?id=$course->id\">$course->shortname</A> ->";
}
+ else
+ $navigation = "";
$straim_quizzes = get_string("modulenameplural", "aim_quiz");
Index: deleteserver.php
===================================================================
RCS file: /cvsroot/aimmath/moodle/mod/aim_quiz/deleteserver.php,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
Index: depends.php
===================================================================
RCS file: /cvsroot/aimmath/moodle/mod/aim_quiz/depends.php,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
Index: editgrade.php
===================================================================
RCS file: /cvsroot/aimmath/moodle/mod/aim_quiz/editgrade.php,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** editgrade.php 25 Aug 2003 16:24:04 -0000 1.1.1.1
--- editgrade.php 27 Aug 2003 14:21:24 -0000 1.2
***************
*** 44,47 ****
--- 44,49 ----
unset($err);
if (isset($grade) && isset($comment)) {
+ if (get_magic_quotes_gpc())
+ $comment= stripslashes($comment);
$grade = trim($grade);
if ($grade == "-") { // reset override (clear grade)
***************
*** 76,79 ****
--- 78,83 ----
$navigation = "<A HREF=\"../../course/view.php?id=$course->id\">$course->shortname</A> ->";
}
+ else
+ $navigation = "";
$straim_quizzes = get_string("modulenameplural", "aim_quiz");
Index: index.php
===================================================================
RCS file: /cvsroot/aimmath/moodle/mod/aim_quiz/index.php,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** index.php 25 Aug 2003 16:24:04 -0000 1.1.1.1
--- index.php 27 Aug 2003 14:21:24 -0000 1.2
***************
*** 28,31 ****
--- 28,33 ----
$navigation = "<A HREF=\"../../course/view.php?id=$course->id\">$course->shortname</A> ->";
}
+ else
+ $navigation = "";
print_header("$course->shortname: $straim_quizzes", "$course->fullname", "$navigation $straim_quizzes");
Index: lib.php
===================================================================
RCS file: /cvsroot/aimmath/moodle/mod/aim_quiz/lib.php,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
Index: servers.php
===================================================================
RCS file: /cvsroot/aimmath/moodle/mod/aim_quiz/servers.php,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
Index: subjects.php
===================================================================
RCS file: /cvsroot/aimmath/moodle/mod/aim_quiz/subjects.php,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
Index: version.php
===================================================================
RCS file: /cvsroot/aimmath/moodle/mod/aim_quiz/version.php,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
Index: view.php
===================================================================
RCS file: /cvsroot/aimmath/moodle/mod/aim_quiz/view.php,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** view.php 25 Aug 2003 16:24:13 -0000 1.1.1.1
--- view.php 27 Aug 2003 14:21:24 -0000 1.2
***************
*** 48,62 ****
$strgrades = get_string("grades");
if (isteacher($course->id)) {
// Get a list of all students
if (!$students = get_course_students($course->id, "u.lastname ASC")) {
- if ($course->category) {
- $navigation = "<A HREF=\"../../course/view.php?id=$course->id\">$course->shortname</A> ->";
- }
-
- $straim_quizzes = get_string("modulenameplural", "aim_quiz");
- $straim_quiz = get_string("modulename", "aim_quiz");
-
print_header("$course->shortname: $aim_quiz->name", "$course->fullname",
"$navigation <A HREF=\"index.php?id=$course->id\">$straim_quizzes</A> -> $aim_quiz->name",
--- 48,64 ----
$strgrades = get_string("grades");
+ if ($course->category) {
+ $navigation = "<A HREF=\"../../course/view.php?id=$course->id\">$course->shortname</A> ->";
+ }
+ else
+ $navigation = "";
+
+ $straim_quizzes = get_string("modulenameplural", "aim_quiz");
+ $straim_quiz = get_string("modulename", "aim_quiz");
+
if (isteacher($course->id)) {
// Get a list of all students
if (!$students = get_course_students($course->id, "u.lastname ASC")) {
print_header("$course->shortname: $aim_quiz->name", "$course->fullname",
"$navigation <A HREF=\"index.php?id=$course->id\">$straim_quizzes</A> -> $aim_quiz->name",
***************
*** 155,165 ****
} else { // Just print the web page
-
- if ($course->category) {
- $navigation = "<A HREF=\"../../course/view.php?id=$course->id\">$course->shortname</A> ->";
- }
-
- $straim_quizzes = get_string("modulenameplural", "aim_quiz");
- $straim_quiz = get_string("modulename", "aim_quiz");
print_header("$course->shortname: $aim_quiz->name", "$course->fullname",
--- 157,160 ----
|