Explorar o código

Fix init in CLI install (#3544)

#fix https://github.com/FreshRSS/FreshRSS/issues/3528
config was not properly reloaded after being populated
Alexandre Alapetite %!s(int64=5) %!d(string=hai) anos
pai
achega
a62d6288b1
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  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();
 		}
 
-		FreshRSS_Context::initSystem();
+		FreshRSS_Context::initSystem(true);
 
 		$ok = false;
 		try {

+ 1 - 1
cli/do-install.php

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