X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FWorker%2FDBUpdate.php;h=c1f3b12ef05f40a221abeaae2e1a12eb03fa7707;hb=69d7391f90a45f166ffff6379701d9c58b56c14d;hp=001df25a811c61c1ff87e30f85f9df680dff40cb;hpb=23654ce566c18c86de30f3263752be49cb0541de;p=friendica.git diff --git a/src/Worker/DBUpdate.php b/src/Worker/DBUpdate.php index 001df25a81..c1f3b12ef0 100644 --- a/src/Worker/DBUpdate.php +++ b/src/Worker/DBUpdate.php @@ -1,21 +1,39 @@ . + * */ + namespace Friendica\Worker; -use Friendica\BaseObject; -use Friendica\Core\Config; use Friendica\Core\Update; +use Friendica\DI; -class DBUpdate extends BaseObject +/** + * This file is called when the database structure needs to be updated + */ +class DBUpdate { public static function execute() { // Just in case the last update wasn't failed - if (Config::get('system', 'update', Update::SUCCESS, true) != Update::FAILED) { - Update::run(self::getApp()->getBasePath()); + if (DI::config()->get('system', 'update', Update::SUCCESS, true) != Update::FAILED) { + Update::run(DI::app()->getBasePath()); } } }