Issue #11 - Added {{duration}} placeholder, changed default title.

This commit is contained in:
Daniel Thee Roperto committed 2016-09-12 14:26:10 +10:00
1 parent 928b72ba08
commit f109c0a5f7
2 files changed
+4 -2

No files matched your search

+3 -1
View File
@@ -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
);