mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
Don't print empty intros
This commit is contained in:
parent
a8449f8c71
commit
bb6f1955a1
@ -81,7 +81,9 @@
|
||||
|
||||
print_heading($quiz->name);
|
||||
print_heading(get_string("attempt", "quiz", $attemptnumber));
|
||||
print_simple_box(format_text($quiz->intro), "CENTER");
|
||||
if (trim(strip_tags($quiz->intro))) {
|
||||
print_simple_box(format_text($quiz->intro), "CENTER");
|
||||
}
|
||||
echo "<br />\n";
|
||||
|
||||
echo "<form name=\"passwordform\" method=\"post\" action=\"attempt.php?id=$cm->id\">\n";
|
||||
@ -244,7 +246,9 @@
|
||||
}
|
||||
|
||||
print_heading(get_string("attempt", "quiz", $attemptnumber));
|
||||
print_simple_box(format_text($quiz->intro), "CENTER");
|
||||
if (trim(strip_tags($quiz->intro))) {
|
||||
print_simple_box(format_text($quiz->intro), "CENTER");
|
||||
}
|
||||
|
||||
|
||||
/// Add the javascript timer in the title bar if the closing time appears close
|
||||
|
@ -65,7 +65,9 @@
|
||||
|
||||
print_heading($quiz->name);
|
||||
|
||||
print_simple_box(format_text($quiz->intro), "CENTER");
|
||||
if (trim(strip_tags($quiz->intro))) {
|
||||
print_simple_box(format_text($quiz->intro), "CENTER");
|
||||
}
|
||||
|
||||
|
||||
if (isguest()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user