moved check_db($via_worker) to Update::check($via_worker)

This commit is contained in:
Philipp Holzer 2018-10-14 13:26:53 +02:00
commit ffbad2dc81
No known key found for this signature in database
GPG key ID: 517BE60E2CE5C8A5
3 changed files with 29 additions and 28 deletions

View file

@ -7,6 +7,7 @@
use Friendica\App;
use Friendica\Core\Config;
use Friendica\Core\Worker;
use Friendica\Core\Update;
// Get options
$shortopts = 'sn';
@ -30,7 +31,7 @@ require_once "boot.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)) {