mirror of
https://github.com/catalyst/moodle-auth_outage.git
synced 2026-05-17 05:48:43 +02:00
Issue #11 - Added {{duration}} placeholder, changed default title.
This commit is contained in:
@@ -141,11 +141,13 @@ class outage {
|
||||
return str_replace(
|
||||
[
|
||||
'{{start}}',
|
||||
'{{stop}}'
|
||||
'{{stop}}',
|
||||
'{{duration}}',
|
||||
],
|
||||
[
|
||||
userdate($this->starttime, get_string('datetimeformat', 'auth_outage')),
|
||||
userdate($this->stoptime, get_string('datetimeformat', 'auth_outage')),
|
||||
format_time($this->get_duration()),
|
||||
],
|
||||
$str
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user