mirror of
https://github.com/moodle/moodle.git
synced 2025-04-14 13:02:07 +02:00
MDL-47833 core: Change default expiry for message inbound handlers
This commit is contained in:
parent
f2bec5d9ba
commit
d7f9acc46a
@ -67,7 +67,7 @@ class tool_messageinbound_edit_handler_form extends moodleform {
|
||||
DAYSECS => get_string('oneday', 'tool_messageinbound'),
|
||||
WEEKSECS => get_string('oneweek', 'tool_messageinbound'),
|
||||
YEARSECS => get_string('oneyear', 'tool_messageinbound'),
|
||||
'' => get_string('noexpiry', 'tool_messageinbound'),
|
||||
0 => get_string('noexpiry', 'tool_messageinbound'),
|
||||
);
|
||||
$mform->addElement('select', 'defaultexpiration', get_string('defaultexpiration', 'tool_messageinbound'), $options);
|
||||
$mform->addHelpButton('defaultexpiration', 'defaultexpiration', 'tool_messageinbound');
|
||||
|
@ -53,7 +53,7 @@ abstract class handler {
|
||||
/**
|
||||
* @var int $defaultexpiration The default expiration time to use when created a new key.
|
||||
*/
|
||||
private $defaultexpiration = 86400;
|
||||
private $defaultexpiration = WEEKSECS;
|
||||
|
||||
/**
|
||||
* @var bool $validateaddress Whether to validate the sender address when processing this handler.
|
||||
|
Loading…
x
Reference in New Issue
Block a user