X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FWorker%2FDBUpdate.php;h=322fa349298bae9da171c7109a1ad2687fc8a0e3;hb=d78661817e71fceb4dd729c101277da33fdeb31b;hp=e3b681ed4d1e62820cb89a9231394ef9882b1a95;hpb=0a4119adaf6294bf43d135a0f435c1dd677c50e0;p=friendica.git diff --git a/src/Worker/DBUpdate.php b/src/Worker/DBUpdate.php index e3b681ed4d..322fa34929 100644 --- a/src/Worker/DBUpdate.php +++ b/src/Worker/DBUpdate.php @@ -1,20 +1,38 @@ . + * */ + namespace Friendica\Worker; -use Friendica\Core\Config; use Friendica\Core\Update; use Friendica\DI; +/** + * 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) { + if (DI::config()->get('system', 'update', Update::SUCCESS, true) != Update::FAILED) { Update::run(DI::app()->getBasePath()); } }