Skip to content

Commit

Permalink
Quiz title and attempt number are now shown on one line as requested …
Browse files Browse the repository at this point in the history
…in bug 3696
  • Loading branch information
gustav_delius committed Jul 7, 2005
1 parent b974afa commit d404868
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions mod/quiz/attempt.php
Expand Up @@ -92,7 +92,11 @@
$currenttab = 'preview';
include('tabs.php');
} else {
print_heading(format_string($quiz->name));
if ($quiz->attempts != 1) {
print_heading(format_string($quiz->name).' - '.$strattemptnum);
} else {
print_heading(format_string($quiz->name));
}
}

/// Check availability
Expand Down Expand Up @@ -375,7 +379,7 @@

/// Print the quiz page ////////////////////////////////////////////////////////

/// Print the attempt number or preview heading
/// Print the preview heading
if ($isteacher) {
print_heading(get_string('previewquiz', 'quiz', format_string($quiz->name)));
unset($buttonoptions);
Expand All @@ -387,8 +391,6 @@
if ($quiz->popup) {
notify(get_string('popupnotice', 'quiz'));
}
} else {
print_heading($strattemptnum);
}

/// Start the form
Expand Down

0 comments on commit d404868

Please sign in to comment.