]> git.mxchange.org Git - friendica.git/blob - src/Worker/DBUpdate.php
Remove unneeded Config namespace usages
[friendica.git] / src / Worker / DBUpdate.php
1 <?php
2 /**
3  * @file src/Worker/DBUpdate.php
4  * This file is called when the database structure needs to be updated
5  */
6 namespace Friendica\Worker;
7
8 use Friendica\Core\Update;
9 use Friendica\DI;
10
11 class DBUpdate
12 {
13         public static function execute()
14         {
15                 // Just in case the last update wasn't failed
16                 if (DI::config()->get('system', 'update', Update::SUCCESS, true) != Update::FAILED) {
17                         Update::run(DI::app()->getBasePath());
18                 }
19         }
20 }