Просмотр исходного кода

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 лет назад
Родитель
Сommit
a62d6288b1
2 измененных файлов с 2 добавлено и 2 удалено
  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