diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2015-08-07 14:48:20 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2015-08-07 14:48:20 +0200 |
commit | d347b82fccb89a2abf0efca684ede9605f41d2f1 (patch) | |
tree | 61071b1d882373d5f21c38ec24b3559a67d84d84 /cron | |
parent | 55660499b49967a4accb4c23c1334e4b94e4bbbd (diff) |
fix line issues
Diffstat (limited to 'cron')
-rw-r--r-- | cron/updater.php | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/cron/updater.php b/cron/updater.php index 258c21678..84aadc8f0 100644 --- a/cron/updater.php +++ b/cron/updater.php @@ -15,7 +15,8 @@ namespace OCA\News\Cron; use OCA\News\AppInfo\Application; - +use OCA\News\Config\Config; +use \OCA\News\Utility\Updater as UpdaterService; class Updater { @@ -27,10 +28,10 @@ class Updater { // make it possible to turn off cron updates if you use an external // script to execute updates in parallel - if ($container->query(\OCA\News\Config\Config::class)->getUseCronUpdates()) { - $container->query(\OCA\News\Utility\Updater::class)->beforeUpdate(); - $container->query(\OCA\News\Utility\Updater::class)->update(); - $container->query(\OCA\News\Utility\Updater::class)->afterUpdate(); + if ($container->query(Config::class)->getUseCronUpdates()) { + $container->query(UpdaterService::class)->update(); + $container->query(UpdaterService::class)->beforeUpdate(); + $container->query(UpdaterService::class)->afterUpdate(); } } |