MDL-47833 core: Change default expiry for message inbound handlers

This commit is contained in:
Dave Cooper 2014-10-24 10:54:45 +08:00 committed by Marina Glancy
parent f2bec5d9ba
commit d7f9acc46a
2 changed files with 2 additions and 2 deletions

View File

@ -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');

View File

@ -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.