Issue #48 and Issue #49 - Changed durations text field to duration, eliminating the problem of negative values. Invalid values will become blank and therefore use our hardcoded defaults.

This commit is contained in:
Daniel Thee Roperto
2016-09-25 13:57:19 +10:00
parent 2fd8b307a6
commit 50e3495c85
4 changed files with 18 additions and 41 deletions

View File

@@ -108,8 +108,8 @@ class outagelib {
return [
'default_autostart' => false,
'default_duration' => 60,
'default_warning_duration' => 60,
'default_duration' => (60*60),
'default_warning_duration' => (60*60),
'default_title' => get_string('defaulttitlevalue', 'auth_outage'),
'default_description' => get_string('defaultdescriptionvalue', 'auth_outage'),
'css' => file_get_contents($CFG->dirroot.'/auth/outage/views/warningbar/warningbar.css'),