Commit 62cc1c8a authored by Robert Lyon's avatar Robert Lyon
Browse files

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

Change-Id: I300ad4cffcfd4bc5614933dd43e1d646483a0484
Signed-off-by: Robert Lyon's avatarRobert Lyon <>
parent 2a95efc3
......@@ -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'));
Supports Markdown
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