Skip to content

Commit

Permalink
MDL-15750 - followup, now the timer is in the navigation block, remov…
Browse files Browse the repository at this point in the history
…e the old display code.
  • Loading branch information
tjhunt committed Aug 15, 2008
1 parent c401e63 commit f9c90df
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions mod/quiz/accessrules.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,11 +168,7 @@ public function show_attempt_timer_if_needed($attempt, $timenow) {
/// Make sure the timer starts just above zero. If $timeleft was <= 0, then
/// this will just have the effect of causing the quiz to be submitted immediately.
$timerstartvalue = max($timeleft, 1);
print_box_start('', 'quiz-timer-outer');
print_heading(get_string('timeleft', 'quiz'), '', 3);
echo '<p id="quiz-timer-display"></p>';
print_box_end();
echo "\n\n", '<script type="text/javascript">';
echo '<script type="text/javascript">';
echo "quiz_timer.initialise('", get_string('timesup','quiz'), "', ", $timerstartvalue, ");";
echo "</script>\n";
}
Expand Down

0 comments on commit f9c90df

Please sign in to comment.