Overview
Comment:Fix cron script
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | dev
Files: files | file ages | folders
SHA3-256: 67f9f0af2595121a69d6041956ba5de5c44a8c1e064c234672688333ffdcf039
User & Date: bohwaz on 2021-03-31 02:20:52
Other Links: branch diff | manifest | tags
Context
2021-03-31
02:59
Restrict CSS to web-content class check-in: 1a3c5b7f6b user: bohwaz tags: dev
02:20
Fix cron script check-in: 67f9f0af25 user: bohwaz tags: dev
2021-03-30
23:24
Fix typo check-in: d2a861df34 user: bohwaz tags: dev, 1.1.0-beta1
Changes

Modified src/scripts/cron.php from [338658a83b] to [46784b92c3].

3
4
5
6
7
8
9


10
11
12
13
14
15
16
17
18
namespace Garradin;

use Garradin\Services\Reminders;

require_once __DIR__ . '/../include/init.php';

// Exécution des tâches automatiques



if (ENABLE_AUTOMATIC_BACKUPS && $config->get('frequence_sauvegardes') && $config->get('nombre_sauvegardes'))
{
	$s = new Sauvegarde;
	$s->auto();
}

// Exécution des rappels automatiques
Reminders::sendPending();







>
>









3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
namespace Garradin;

use Garradin\Services\Reminders;

require_once __DIR__ . '/../include/init.php';

// Exécution des tâches automatiques

$config = Config::getInstance();

if (ENABLE_AUTOMATIC_BACKUPS && $config->get('frequence_sauvegardes') && $config->get('nombre_sauvegardes'))
{
	$s = new Sauvegarde;
	$s->auto();
}

// Exécution des rappels automatiques
Reminders::sendPending();