\Friendica\Core\Logger\Handler\ErrorHandler::register($dice->create(\Psr\Log\LoggerInterface::class));
// Check the database structure and possibly fixes it
-\Friendica\Core\Update::check(\Friendica\DI::basePath(), true, \Friendica\DI::mode());
+\Friendica\Core\Update::check(\Friendica\DI::basePath(), true);
$appMode = $dice->create(Mode::class);
use Dice\Dice;
use Friendica\App\Mode;
use Friendica\Core\Logger;
-use Friendica\Core\Update;
use Friendica\Core\Worker;
use Friendica\Database\DBA;
use Friendica\DI;
DI::init($dice);
\Friendica\Core\Logger\Handler\ErrorHandler::register($dice->create(\Psr\Log\LoggerInterface::class));
-// Check the database structure and possibly fixes it
-Update::check(DI::basePath(), true, DI::mode());
-
if (DI::mode()->isInstall()) {
die("Friendica isn't properly installed yet.\n");
}
DI::mode()->setExecutor(Mode::WORKER);
// Check the database structure and possibly fixes it
-Update::check(DI::basePath(), true, DI::mode());
+Update::check(DI::basePath(), true);
// Quit when in maintenance
if (!DI::mode()->has(App\Mode::MAINTENANCEDISABLED)) {
\Friendica\Core\Logger\Handler\ErrorHandler::register($dice->create(\Psr\Log\LoggerInterface::class));
// Check the database structure and possibly fixes it
-\Friendica\Core\Update::check(\Friendica\DI::basePath(), true, \Friendica\DI::mode());
+\Friendica\Core\Update::check(\Friendica\DI::basePath(), true);
$a = \Friendica\DI::app();
$this->baseURL->redirect('install');
} else {
$this->checkURL();
- Core\Update::check($this->getBasePath(), false, $this->mode);
+ Core\Update::check($this->getBasePath(), false);
Core\Addon::loadAddons();
Core\Hook::loadHooks();
}
* @return void
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
*/
- public static function check(string $basePath, bool $via_worker, App\Mode $mode)
+ public static function check(string $basePath, bool $via_worker)
{
if (!DBA::connected()) {
return;