Commit 4bb6ca7f authored by Jono Mingard's avatar Jono Mingard Committed by Gerrit Code Review
Browse files

Merge "Fixing lang string for secret url page (Bug #1436582)"

parents 6c2ebc01 62cc1c8a
......@@ -27,7 +27,7 @@ $string['userviewurltaken'] = 'This URL is already taken. Please choose an
$string['description'] = 'Page description';
$string['startdate'] = 'Access start date/time';
$string['stopdate'] = 'Access end date/time';
$string['stopdatecannotbeinpast'] = 'Stop date cannot be in the past';
$string['stopdatecannotbeinpast1'] = '"To" date cannot be in the past';
$string['startdatemustbebeforestopdate'] = 'Start date must be before stop date';
$string['newstopdatecannotbeinpast'] = 'The end date for \'%s\' access cannot be in the past.';
$string['newstartdatemustbebeforestopdate'] = 'The start date for \'%s\' access must be before the end date.';
......
......@@ -172,7 +172,7 @@ function editurl_validate(Pieform $form, $values) {
$values['stopdate'] = null;
}
if ($values['stopdate'] && time() > $values['stopdate']) {
$form->set_error('stopdate', get_string('stopdatecannotbeinpast', 'view'));
$form->set_error('stopdate', get_string('stopdatecannotbeinpast1', 'view'));
}
if ($values['startdate'] && $values['stopdate'] && $values['startdate'] > $values['stopdate']) {
$form->set_error('startdate', get_string('startdatemustbebeforestopdate', 'view'));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment