MDL-79202 tool_mobile: correctly interpolate minutes in exception.

This commit is contained in:
Paul Holden
2023-08-30 00:04:58 +01:00
parent 9bfcd77d51
commit c3f53e4e39
2 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -318,7 +318,7 @@ class external extends external_api {
$timenow = time();
if ($timenow - $last < $mintimereq) {
$minutes = $mintimereq / MINSECS;
throw new moodle_exception('autologinkeygenerationlockout', 'tool_mobile', $minutes);
throw new moodle_exception('autologinkeygenerationlockout', 'tool_mobile', '', $minutes);
}
set_user_preference('tool_mobile_autologin_request_last', $timenow, $USER);