diff options
Diffstat (limited to 'modules-available/backup/hooks/main-warning.inc.php')
-rw-r--r-- | modules-available/backup/hooks/main-warning.inc.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/modules-available/backup/hooks/main-warning.inc.php b/modules-available/backup/hooks/main-warning.inc.php new file mode 100644 index 00000000..0a0be7cc --- /dev/null +++ b/modules-available/backup/hooks/main-warning.inc.php @@ -0,0 +1,8 @@ +<?php + +$last = Property::get('backup.last-time', 0); +if ($last === 0) { + Message::addWarning('backup.last-time-unknown', true); +} elseif ($last + (30 * 86400) < time()) { + Message::addWarning('backup.last-time', true, date('d.m.Y', $last)); +} |