]> git.mxchange.org Git - friendica.git/blobdiff - bin/worker.php
Merge pull request #6435 from annando/nextcloud
[friendica.git] / bin / worker.php
index d5cd1f6b4b7cc56492e770a3f53d51214d11acfa..78b6da5857343598d81ce0825196d40fc4004b44 100755 (executable)
@@ -7,6 +7,7 @@
 use Friendica\App;
 use Friendica\Core\Config;
 use Friendica\Core\Worker;
+use Friendica\Core\Update;
 
 // Get options
 $shortopts = 'sn';
@@ -25,12 +26,12 @@ if (!file_exists("boot.php") && (sizeof($_SERVER["argv"]) != 0)) {
        chdir($directory);
 }
 
-require_once "boot.php";
+require dirname(__DIR__) . '/vendor/autoload.php';
 
 $a = new App(dirname(__DIR__));
 
 // Check the database structure and possibly fixes it
-check_db(true);
+Update::check(true);
 
 // Quit when in maintenance
 if (!$a->getMode()->has(App\Mode::MAINTENANCEDISABLED)) {