diff options
Diffstat (limited to 'cron/updater.php')
-rw-r--r-- | cron/updater.php | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/cron/updater.php b/cron/updater.php index 40e134b02..b04472334 100644 --- a/cron/updater.php +++ b/cron/updater.php @@ -20,19 +20,19 @@ use \OCA\News\AppInfo\Application; class Updater { - static public function run() { - $app = new Application(); - - $container = $app->getContainer(); - - // make it possible to turn off cron updates if you use an external - // script to execute updates in parallel - if ($container->query('Config')->getUseCronUpdates()) { - $container->query('Updater')->beforeUpdate(); - $container->query('Updater')->update(); - $container->query('Updater')->afterUpdate(); - } - } + static public function run() { + $app = new Application(); + + $container = $app->getContainer(); + + // make it possible to turn off cron updates if you use an external + // script to execute updates in parallel + if ($container->query('Config')->getUseCronUpdates()) { + $container->query('Updater')->beforeUpdate(); + $container->query('Updater')->update(); + $container->query('Updater')->afterUpdate(); + } + } } |