Merge branch 'MDL-79169-int-deprecate-401' of https://github.com/Peterburnett/moodle into MOODLE_401_STABLE

This commit is contained in:
Andrew Nicols 2023-08-29 11:21:00 +08:00
commit 04dda99502
No known key found for this signature in database
GPG Key ID: 6D1E3157C8CFBF14

View File

@ -841,7 +841,7 @@ class core_renderer extends renderer_base {
$output .= $this->box_start($errorclass . ' moodle-has-zindex maintenancewarning m-3 alert');
$a = new stdClass();
$a->hour = (int)($timeleft / 3600);
$a->min = (int)(($timeleft / 60) % 60);
$a->min = (int)(floor($timeleft / 60) % 60);
$a->sec = (int)($timeleft % 60);
if ($a->hour > 0) {
$output .= get_string('maintenancemodeisscheduledlong', 'admin', $a);