summaryrefslogtreecommitdiffstats
path: root/modules-available/backup/hooks/main-warning.inc.php
blob: 0a0be7cc825993fe71dafc77199b4d82a55dd8b9 (plain) (blame)
1
2
3
4
5
6
7
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));
}