Overview
Comment: | Make sure preCheck returns a boolean |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | dev |
Files: | files | file ages | folders |
SHA1: |
89686bb4b846fae9e3db2d687d991cd5 |
User & Date: | bohwaz on 2020-12-04 19:23:32 |
Other Links: | branch diff | manifest | tags |
Context
2020-12-04
| ||
19:25 | Actually make sure preCheck returns a bool check-in: 7d61ab1cfc user: bohwaz tags: dev | |
19:23 | Make sure preCheck returns a boolean check-in: 89686bb4b8 user: bohwaz tags: dev | |
19:18 | Return status 2 if upgrade was done check-in: ac16e45cb7 user: bohwaz tags: dev | |
Changes
Modified src/scripts/upgrade.php from [75cd00f0f0] to [53bc57b249].
1 2 3 4 5 6 7 8 9 10 | <?php namespace Garradin; const UPGRADE_PROCESS = true; require_once __DIR__ . '/../include/init.php'; $config = Config::getInstance(); | < > > > > < < < < < | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | <?php namespace Garradin; const UPGRADE_PROCESS = true; require_once __DIR__ . '/../include/init.php'; $config = Config::getInstance(); try { if (Upgrade::preCheck()) { Upgrade::upgrade(); exit(2); } else { exit(0); } } catch (UserException $e) { echo $e->getMessage() . PHP_EOL; exit(1); } |