Forgot the lesson_ prefix
This commit is contained in:
@@ -135,7 +135,7 @@ if ($lesson->displayleft) {
|
||||
// -->
|
||||
</script>
|
||||
<noscript>
|
||||
<?php print_time_remaining($timer->starttime, $lesson->maxtime); ?>
|
||||
<?php lesson_print_time_remaining($timer->starttime, $lesson->maxtime); ?>
|
||||
</noscript>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -377,7 +377,7 @@ function lesson_print_submit_link($name, $form, $align = 'center', $class='stand
|
||||
* @param boolean $return Return output switch
|
||||
* @return mixed boolean/string
|
||||
**/
|
||||
function print_time_remaining($starttime, $maxtime, $return = false) {
|
||||
function lesson_print_time_remaining($starttime, $maxtime, $return = false) {
|
||||
// Calculate hours, minutes and seconds
|
||||
$timeleft = $starttime + $maxtime * 60 - time();
|
||||
$hours = floor($timeleft/3600);
|
||||
|
||||
+1
-1
@@ -555,7 +555,7 @@
|
||||
echo "document.write('<script type=\"text/javascript\" src=\"$CFG->wwwroot/mod/lesson/timer.js\"><\/script>');\n";
|
||||
echo "window.onload = function () { show_clock(); }\n";
|
||||
echo "</script>\n";
|
||||
echo '<noscript>'.print_time_remaining($timer->starttime, $lesson->maxtime, true)."</noscript>\n";
|
||||
echo '<noscript>'.lesson_print_time_remaining($timer->starttime, $lesson->maxtime, true)."</noscript>\n";
|
||||
echo "</td></tr></table>";
|
||||
echo "<br /><br /><br />";
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user