Commit 1fd2c11c authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review
Browse files

Merge "Bug 1558885: Change the overriding start / end date lang string"

parents 28fcc277 a4134f74
......@@ -63,9 +63,9 @@ $string['deletethisview'] = 'Delete this page';
$string['submitthisviewto1'] = 'Submit this page for assessment to';
$string['submitthiscollectionto1'] = 'Submit this collection for assessment to';
$string['forassessment1'] = 'Submit for assessment';
$string['accessfromdate2'] = 'Nobody else can see this page before %s.';
$string['accessuntildate2'] = 'Nobody else can see this page after %s.';
$string['accessbetweendates2'] = 'Nobody else can see this page before %s or after %s.';
$string['accessfromdate3'] = 'Nobody can see this page before %s.';
$string['accessuntildate3'] = 'Nobody can see this page after %s.';
$string['accessbetweendates3'] = 'Nobody can see this page before %s or after %s.';
$string['artefactsinthisview'] = 'Artefacts in this page';
$string['whocanseethisview'] = 'Who can see this page';
$string['view'] = 'page';
......
......@@ -6098,20 +6098,20 @@ class View {
public static function access_override_description($v) {
if ($v['startdate'] && $v['stopdate']) {
return get_string(
'accessbetweendates2', 'view',
'accessbetweendates3', 'view',
format_date(strtotime($v['startdate']), 'strftimedate'),
format_date(strtotime($v['stopdate']), 'strftimedate')
);
}
if ($v['startdate']) {
return get_string(
'accessfromdate2', 'view',
'accessfromdate3', 'view',
format_date(strtotime($v['startdate']), 'strftimedate')
);
}
if ($v['stopdate']) {
return get_string(
'accessuntildate2', 'view',
'accessuntildate3', 'view',
format_date(strtotime($v['stopdate']), 'strftimedate')
);
}
......
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