Browse Source

Fix init in CLI install (#3544)

#fix https://github.com/FreshRSS/FreshRSS/issues/3528
config was not properly reloaded after being populated
Alexandre Alapetite 5 years ago
parent
commit
a62d6288b1
2 changed files with 2 additions and 2 deletions
  1. 1 1
      app/install.php
  2. 1 1
      cli/do-install.php

+ 1 - 1
app/install.php

@@ -152,7 +152,7 @@ function saveStep2() {
 			opcache_reset();
 			opcache_reset();
 		}
 		}
 
 
-		FreshRSS_Context::initSystem();
+		FreshRSS_Context::initSystem(true);
 
 
 		$ok = false;
 		$ok = false;
 		try {
 		try {

+ 1 - 1
cli/do-install.php

@@ -86,7 +86,7 @@ if (function_exists('opcache_reset')) {
 	opcache_reset();
 	opcache_reset();
 }
 }
 
 
-FreshRSS_Context::initSystem();
+FreshRSS_Context::initSystem(true);
 
 
 Minz_Session::_param('currentUser', '_');	//Default user
 Minz_Session::_param('currentUser', '_');	//Default user