diff options
| author | 2021-01-03 12:57:42 +0100 | |
|---|---|---|
| committer | 2021-01-03 12:57:42 +0100 | |
| commit | 635748342c89e980dccf2271095a530bb273c6a9 (patch) | |
| tree | 9144ce0b97c60a088b68331a1d1f65a38434db14 | |
| parent | 31cb07ac1acf7bad8c1bf6bbef45a17f4e0edbf3 (diff) | |
Fix init system (#3328)
#fix https://github.com/FreshRSS/FreshRSS/issues/3323
System would crash when no `FRESHRSS_ENV` environment was set, due to
https://github.com/FreshRSS/FreshRSS/blob/31cb07ac1acf7bad8c1bf6bbef45a17f4e0edbf3/lib/Minz/FrontController.php#L116-L119
| -rwxr-xr-x | p/i/index.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/p/i/index.php b/p/i/index.php index d1d56bbb9..0d3f11900 100755 --- a/p/i/index.php +++ b/p/i/index.php @@ -63,6 +63,7 @@ if (file_exists(DATA_PATH . '/do-install.txt')) { // Apply the migrations if any $result = Minz_Migrator::execute($migrations_path, $applied_migrations_path); if ($result === true) { + FreshRSS_Context::initSystem(); $front_controller = new FreshRSS(); $front_controller->init(); Minz_Session::_param('keepAlive', 1); //To prevent the PHP session from expiring |
