]> git.mxchange.org Git - friendica.git/blobdiff - mod/worker.php
Move /profile_photo to Module\Settings\Profile\Photo
[friendica.git] / mod / worker.php
index 6b2b59c87fa0f35df47b8006715580095badc8e3..2ebd463a765188669cd00209e1ae2a01b8c07e04 100644 (file)
@@ -4,16 +4,16 @@
  * Module for running the worker as frontend process
  */
 
-use Friendica\Core\Config;
 use Friendica\Core\Logger;
 use Friendica\Core\Worker;
 use Friendica\Database\DBA;
+use Friendica\DI;
 use Friendica\Util\DateTimeFormat;
 
 function worker_init()
 {
 
-       if (!Config::get("system", "frontend_worker")) {
+       if (!DI::config()->get("system", "frontend_worker")) {
                return;
        }
 
@@ -31,7 +31,7 @@ function worker_init()
 
        $workers = q("SELECT COUNT(*) AS `processes` FROM `process` WHERE `command` = 'worker.php'");
 
-       if ($workers[0]["processes"] > Config::get("system", "worker_queues", 4)) {
+       if ($workers[0]["processes"] > DI::config()->get("system", "worker_queues", 4)) {
                return;
        }