Overview
Comment:Remove useless config call
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | dev
Files: files | file ages | folders
SHA3-256: da5b2c2db6a19c1ed4c99f960a11aad01f01ddc1c17327e7f09c83f2fe5351bf
User & Date: bohwaz on 2021-04-08 11:37:58
Other Links: branch diff | manifest | tags
Context
2021-04-08
16:06
Fix migration check-in: 1a5bb28aea user: bohwaz tags: dev
11:37
Remove useless config call check-in: da5b2c2db6 user: bohwaz tags: dev
10:23
Release 1.1.0-rc2, merge with trunk changes check-in: 2766cf833f user: bohwaz tags: dev, 1.1.0-rc2
Changes

Modified src/scripts/upgrade.php from [53bc57b249] to [63ad14ab52].

2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

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);
}







<
<













2
3
4
5
6
7
8


9
10
11
12
13
14
15
16
17
18
19
20
21

namespace Garradin;

const UPGRADE_PROCESS = true;

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



try {
	if (Upgrade::preCheck()) {
		Upgrade::upgrade();
		exit(2);
	}
	else {
		exit(0);
	}
}
catch (UserException $e) {
	echo $e->getMessage() . PHP_EOL;
	exit(1);
}